]> git.saurik.com Git - wxWidgets.git/commitdiff
eVC4 warning fixes.
authorWłodzimierz Skiba <abx@abx.art.pl>
Sun, 6 Nov 2005 21:42:01 +0000 (21:42 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Sun, 6 Nov 2005 21:42:01 +0000 (21:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/wince/filedlgwce.cpp
src/richtext/richtextbuffer.cpp

index e0b6acb5d51bbd4dbd8751786d4f0ddfa98dce09..6d0cfe94cfd48ff2f343bee66ef83c59bda11dad 100644 (file)
@@ -114,16 +114,12 @@ int wxFileDialog::ShowModal()
         parentWindow = wxTheApp->GetTopWindow();
 
     wxString str = wxGetTextFromUser(m_message, _("File"), m_fileName, parentWindow);
-    if (str)
-    {
-        m_fileName = str;
-        m_fileNames.Add(str);
-        return wxID_OK;
-    }
-    else
-    {
+    if (str.empty())
         return wxID_CANCEL;
-    }
+
+    m_fileName = str;
+    m_fileNames.Add(str);
+    return wxID_OK;
 }
 
 void wxFileDialog::GetFilenames(wxArrayString& files) const
index a42bdfacb342313bd567d82d18c2fdf2c84acabb..2d896e02c611dbacdb44a58c0e5cd8dec19e421b 100644 (file)
@@ -4870,8 +4870,8 @@ bool wxRichTextFileHandler::LoadFile(wxRichTextBuffer *buffer, const wxString& f
     wxFFileInputStream stream(filename);
     if (stream.Ok())
         return LoadFile(buffer, stream);
-    else
-        return false;
+
+    return false;
 }
 
 bool wxRichTextFileHandler::SaveFile(wxRichTextBuffer *buffer, const wxString& filename)
@@ -4879,8 +4879,8 @@ bool wxRichTextFileHandler::SaveFile(wxRichTextBuffer *buffer, const wxString& f
     wxFFileOutputStream stream(filename);
     if (stream.Ok())
         return SaveFile(buffer, stream);
-    else
-        return false;
+
+    return false;
 }
 #endif // wxUSE_STREAMS