From 2bded955e286f0fcb860e0ed3a1ff3574f7db52c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Jul 2014 17:00:04 +0000 Subject: profile manager: support for the obsolete profiles git-svn-id: http://svn.miranda-ng.org/main/trunk@9865 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/database/database.cpp') diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 9ede9ce6e9..aa0c86045c 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -33,14 +33,14 @@ void EnsureCheckerLoaded(bool); void LoadDatabaseServices(); -bool fileExist(TCHAR* fname) +bool fileExist(const TCHAR *fname) { if (*fname == 0) return false; - FILE* fp = _tfopen(fname, _T("r+")); + FILE *fp = _tfopen(fname, _T("r+")); bool res = fp != NULL; - if (res) fclose(fp); + if (fp) fclose(fp); return res; } -- cgit v1.2.3