diff options
Diffstat (limited to 'plugins/DbEditorPP/src/copymodule.cpp')
-rw-r--r-- | plugins/DbEditorPP/src/copymodule.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/DbEditorPP/src/copymodule.cpp b/plugins/DbEditorPP/src/copymodule.cpp index 9a9772edb4..e3884fb123 100644 --- a/plugins/DbEditorPP/src/copymodule.cpp +++ b/plugins/DbEditorPP/src/copymodule.cpp @@ -3,12 +3,11 @@ void copyModule(char* module, HANDLE hContactFrom, HANDLE hContactTo)
{
ModuleSettingLL msll;
- struct ModSetLinkLinkItem *setting;
- EnumSettings(hContactFrom,module, &msll);
+ EnumSettings(hContactFrom, module, &msll);
- setting = msll.first;
- while(setting) {
+ ModSetLinkLinkItem *setting = msll.first;
+ while (setting) {
DBVARIANT dbv;
if (!GetSetting(hContactFrom, module, setting->name, &dbv)) {
switch (dbv.type) {
@@ -33,7 +32,7 @@ void copyModule(char* module, HANDLE hContactFrom, HANDLE hContactTo) }
}
db_free(&dbv);
- setting = (struct ModSetLinkLinkItem *)setting->next;
+ setting = setting->next;
}
FreeModuleSettingLL(&msll);
}
|