|
From: <pst...@us...> - 2011-08-05 01:35:28
|
Revision: 876
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=876&view=rev
Author: pstieber
Date: 2011-08-05 01:35:22 +0000 (Fri, 05 Aug 2011)
Log Message:
-----------
Updated empty string tests and made a cosmetic indentation change.
Modified Paths:
--------------
trunk/jazz/src/FileSelector.cpp
Modified: trunk/jazz/src/FileSelector.cpp
===================================================================
--- trunk/jazz/src/FileSelector.cpp 2011-08-05 01:33:53 UTC (rev 875)
+++ trunk/jazz/src/FileSelector.cpp 2011-08-05 01:35:22 UTC (rev 876)
@@ -95,7 +95,6 @@
buf << "overwrite "<<s<<"?";
if (wxMessageBox(buf, "Save ?", wxYES_NO) == wxNO)
{
-
s = wxEmptyString;
}
}
@@ -112,7 +111,7 @@
}
}
- if (s!=wxEmptyString && !save)
+ if (!s.empty() && !save)
{
if (!wxFileExists(s))
{
@@ -124,7 +123,7 @@
}
}
- if (s != wxEmptyString)
+ if (!s.empty())
{
//DefaultFileName = s;
//return DefaultFileName;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|