|
From: <pst...@us...> - 2008-04-03 03:45:52
|
Revision: 389
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=389&view=rev
Author: pstieber
Date: 2008-04-02 20:45:45 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Changed char* to const char*.
Modified Paths:
--------------
trunk/jazz/src/SampleDialog.cpp
Modified: trunk/jazz/src/SampleDialog.cpp
===================================================================
--- trunk/jazz/src/SampleDialog.cpp 2008-04-03 03:42:46 UTC (rev 388)
+++ trunk/jazz/src/SampleDialog.cpp 2008-04-03 03:45:45 UTC (rev 389)
@@ -198,7 +198,17 @@
#define CV_SINE1 5
#define CV_SINE2 6
-static char *cv_strings[] = { "Linear", "Expo 1", "Expo 2", "Expo 3", "Expo 4", "Sine 1", "Sine 2", 0 };
+static const char* cv_strings[] =
+{
+ "Linear",
+ "Expo 1",
+ "Expo 2",
+ "Expo 3",
+ "Expo 4",
+ "Sine 1",
+ "Sine 2",
+ 0
+};
int tDistortion::geo[4] = { 50, 80, 300, 320 };
@@ -221,9 +231,11 @@
action = new wxButton(panel, wxID_ANY, "Ok"); //(wxFunction)ItemCallback,
cancel = new wxButton(panel, wxID_ANY, "Cancel"); //(wxFunction)ItemCallback,
curve = new wxChoice(panel, wxID_ANY);//, "Presets"); //(wxFunction)ItemCallback,
- char **s = cv_strings;
+ const char **s = cv_strings;
while (*s)
+ {
curve->Append(*s++);
+ }
}
void tDistortion::AddEdits()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|