From: Vadim Zeitlin Date: Wed, 13 Oct 2010 22:10:28 +0000 (+0000) Subject: Don't return "false" when a pointer is needed. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/12f6edffd495f1f4f1ba77c629abcb97b08b6da6?ds=inline Don't return "false" when a pointer is needed. Return NULL and not false from wxFileTranslationsLoader:: GetAvailableTranslations(). This is, of course, more correct and also fixes a compilation problem with Borland, see #12558. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/translation.cpp b/src/common/translation.cpp index ee4328a72c..90f02759fc 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -1790,7 +1790,7 @@ wxMsgCatalog *wxResourceTranslationsLoader::LoadCatalog(const wxString& domain, resname, GetResourceType(), GetModule()) ) - return false; + return NULL; wxLogTrace(TRACE_I18N, "Using catalog from Windows resource \"%s\".", resname);