Resolve '&&' ambiguity
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -177,11 +177,7 @@ bool wxAppConsoleBase::Initialize(int& argcOrig, wxChar **argvOrig)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __WXPALMOS__
|
#ifndef __WXPALMOS__
|
||||||
#if wxUSE_UNICODE
|
|
||||||
if ( m_appName.empty() && (bool) argv )
|
if ( m_appName.empty() && (bool) argv )
|
||||||
#else
|
|
||||||
if ( m_appName.empty() && argv )
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// the application name is, by default, the name of its executable file
|
// the application name is, by default, the name of its executable file
|
||||||
wxFileName::SplitPath(argv[0], NULL, &m_appName, NULL);
|
wxFileName::SplitPath(argv[0], NULL, &m_appName, NULL);
|
||||||
|
@@ -53,7 +53,7 @@ wxStandardPathsBase& wxStandardPathsBase::Get()
|
|||||||
|
|
||||||
wxString wxStandardPathsBase::GetExecutablePath() const
|
wxString wxStandardPathsBase::GetExecutablePath() const
|
||||||
{
|
{
|
||||||
if ( !wxTheApp || !wxTheApp->argv )
|
if ( !wxTheApp || ! (bool) wxTheApp->argv )
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
|
|
||||||
wxString argv0 = wxTheApp->argv[0];
|
wxString argv0 = wxTheApp->argv[0];
|
||||||
|
Reference in New Issue
Block a user