]> git.saurik.com Git - wxWidgets.git/commitdiff
fix clang warning (? having two different operand types)
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Mar 2011 18:40:18 +0000 (18:40 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Mar 2011 18:40:18 +0000 (18:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index e04e85b8faf441f7e1759ee8df0458ba354583d8..8fc90a869e1e5eb78da1dedea668bd17c5f215c9 100644 (file)
@@ -995,7 +995,7 @@ wxMBConvStrictUTF8::ToWChar(wchar_t *dst, size_t dstLen,
 
     for ( const char *p = src; ; p++ )
     {
-        if ( !(srcLen == wxNO_LEN ? *p : srcLen) )
+        if ( (srcLen == wxNO_LEN ? !*p : !srcLen) )
         {
             // all done successfully, just add the trailing NULL if we are not
             // using explicit length
@@ -1115,7 +1115,7 @@ wxMBConvStrictUTF8::FromWChar(char *dst, size_t dstLen,
 
     for ( const wchar_t *wp = src; ; wp++ )
     {
-        if ( !(srcLen == wxNO_LEN ? *wp : srcLen) )
+        if ( (srcLen == wxNO_LEN ? !*wp : !srcLen) )
         {
             // all done successfully, just add the trailing NULL if we are not
             // using explicit length