[7296] Fixed some GCC warnings. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-18 16:51:10 -06:00
parent d0a3d03422
commit 8c7daebae9
4 changed files with 8 additions and 10 deletions
+4 -2
View File
@@ -254,8 +254,9 @@ bool Utf8toWStr(char const* utf8str, size_t csize, wchar_t* wstr, size_t& wsize)
size_t len = utf8::distance(utf8str,utf8str+csize);
if(len > wsize)
{
if(wsize > 0)
wstr[0] = L'\0';
wsize = 0;
wstr = L"";
return false;
}
@@ -265,8 +266,9 @@ bool Utf8toWStr(char const* utf8str, size_t csize, wchar_t* wstr, size_t& wsize)
}
catch(std::exception)
{
if(wsize > 0)
wstr[0] = L'\0';
wsize = 0;
wstr = L"";
return false;
}
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7295"
#define REVISION_NR "7296"
#endif // __REVISION_NR_H__