Revision: 882
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=882&view=rev
Author: pstieber
Date: 2011-08-05 19:53:28 +0000 (Fri, 05 Aug 2011)
Log Message:
-----------
1. Changed fname to FileName.
2. Updated string processing.
Modified Paths:
--------------
trunk/jazz/src/SampleDialog.cpp
Modified: trunk/jazz/src/SampleDialog.cpp
===================================================================
--- trunk/jazz/src/SampleDialog.cpp 2011-08-05 19:48:23 UTC (rev 881)
+++ trunk/jazz/src/SampleDialog.cpp 2011-08-05 19:53:28 UTC (rev 882)
@@ -618,15 +618,15 @@
{
case SYN_LOAD:
{
- wxString fname = file_selector(
+ wxString FileName = file_selector(
mDefaultFileName,
"Load Synth",
0,
0,
"*.syn");
- if (fname)
+ if (!FileName.empty())
{
- ifstream is(fname);
+ ifstream is(FileName.wx_str());
is >> *this;
SetupEdits();
int cw, ch;
@@ -640,15 +640,15 @@
case SYN_SAVE:
{
- wxString fname = file_selector(
+ wxString FileName = file_selector(
mDefaultFileName,
"Save Synth",
1,
0,
"*.syn");
- if (fname)
+ if (!FileName.empty())
{
- ofstream os(fname);
+ ofstream os(FileName.wx_str());
os << *this;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|