summaryrefslogtreecommitdiff
path: root/src/modules/database/database.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-21 20:04:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-21 20:04:48 +0000
commitd154673f93ad95197bce8cadb995daa5bc39f5d8 (patch)
tree191522aa88f9f845a9c27b1ddb86116b87033c4b /src/modules/database/database.cpp
parentbe50a70bfd8b3f3daf0c3351fdce6e2fea515bd7 (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7820 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r--src/modules/database/database.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index 303198d9d0..21a958ecd4 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -137,12 +137,12 @@ static void loadProfileByShortName(const TCHAR* src, TCHAR *szProfile, size_t cc
_tcsncpy(buf, src, SIZEOF(buf));
TCHAR *p = _tcsrchr(buf, '\\'); if (p) ++p; else p = buf;
- if ( !isValidProfileName(buf) && *p)
+ if (!isValidProfileName(buf) && *p)
_tcscat(buf, _T(".dat"));
TCHAR profileName[MAX_PATH], newProfileDir[MAX_PATH];
_tcscpy(profileName, p);
- if ( !isValidProfileName(profileName) && *p)
+ if (!isValidProfileName(profileName) && *p)
_tcscat(profileName, _T(".dat"));
_tcscpy(profileName, p);
@@ -329,7 +329,7 @@ char* makeFileName(const TCHAR* tszOriginalName)
szResult = mir_t2a(tszProfile);
}
- if ( !szResult)
+ if (!szResult)
szResult = szFileName;
else
mir_free(szFileName);
@@ -438,7 +438,7 @@ int LoadDatabaseModule(void)
szProfile[0] = 0;
// find out which profile to load
- if ( !getProfile(szProfile, SIZEOF(szProfile)))
+ if (!getProfile(szProfile, SIZEOF(szProfile)))
return 1;
EnsureCheckerLoaded(false); // unload dbchecker