diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-25 16:05:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-25 16:05:02 +0000 |
commit | 9cd56911dcad8f6ebc1285404d81cf5e22734f1c (patch) | |
tree | 9ac4275079d18f82dd438edf9d11935f63dd7686 /plugins/Clist_modern/src/modern_skinengine.cpp | |
parent | b1408229a7cc41bc4832f00dffd9d3a04f26a96f (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_skinengine.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_skinengine.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/modern_skinengine.cpp b/plugins/Clist_modern/src/modern_skinengine.cpp index b4d2768a98..303df1c769 100644 --- a/plugins/Clist_modern/src/modern_skinengine.cpp +++ b/plugins/Clist_modern/src/modern_skinengine.cpp @@ -2326,10 +2326,8 @@ static int ske_LoadSkinFromResource(BOOL bOnlyObjects) }
//Load data from ini file
-int ske_LoadSkinFromIniFile(TCHAR * szFileName, BOOL bOnlyObjects)
+int ske_LoadSkinFromIniFile(TCHAR *szFileName, BOOL bOnlyObjects)
{
- TCHAR skinFolder[MAX_PATH] = {0};
- TCHAR skinFile[MAX_PATH] = {0};
if (_tcschr(szFileName,_T('%')))
return ske_LoadSkinFromResource( bOnlyObjects );
@@ -2337,11 +2335,13 @@ int ske_LoadSkinFromIniFile(TCHAR * szFileName, BOOL bOnlyObjects) if ( !parser.CheckOK()) return 0;
ske_DeleteAllSettingInSection("ModernSkin");
- IniParser::GetSkinFolder(szFileName,skinFolder);
+
+ TCHAR skinFolder[MAX_PATH], skinFile[MAX_PATH];
+ IniParser::GetSkinFolder(szFileName, skinFolder);
PathToRelativeT(szFileName, skinFile);
- db_set_ws(NULL,SKIN,"SkinFolder", skinFolder);
- db_set_ws(NULL,SKIN,"SkinFile", skinFile);
+ db_set_ts(NULL,SKIN,"SkinFolder", skinFolder);
+ db_set_ts(NULL,SKIN,"SkinFile", skinFile);
parser.Parse( IniParser::WriteStrToDb, 1 );
|