[Lemon-commits] [lemon_svn] hegyi: r1984 - hugo/trunk/gui

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:49:16 CET 2006


Author: hegyi
Date: Fri Jun 17 16:53:28 2005
New Revision: 1984

Modified:
   hugo/trunk/gui/all_include.h
   hugo/trunk/gui/graph-displayer.cc

Log:
Little beauty fault is corrected.

Modified: hugo/trunk/gui/all_include.h
==============================================================================
--- hugo/trunk/gui/all_include.h	(original)
+++ hugo/trunk/gui/all_include.h	Fri Jun 17 16:53:28 2005
@@ -24,8 +24,8 @@
 
 
 #ifndef MAIN_PART
-extern std::string * property_strings;
-extern double * property_defaults;
+extern std::vector <std::string> property_strings;
+extern std::vector <double> property_defaults;
 #endif //MAIN_PART
 
 using namespace lemon;

Modified: hugo/trunk/gui/graph-displayer.cc
==============================================================================
--- hugo/trunk/gui/graph-displayer.cc	(original)
+++ hugo/trunk/gui/graph-displayer.cc	Fri Jun 17 16:53:28 2005
@@ -6,8 +6,8 @@
 
 #define MAIN_PART
 
-std::string * property_strings;
-double * property_defaults;
+std::vector <std::string> property_strings;
+std::vector <double> property_defaults;
 
 
 int main(int argc, char *argv[])
@@ -15,12 +15,12 @@
 
   //initializing
 
-  property_strings=new std::string[PROPERTY_NUM];
+  //  property_strings=new std::string[PROPERTY_NUM];
   property_strings[WIDTH]="Width";
   property_strings[COLOR]="Color";
   property_strings[TEXT]="Text";
 
-  property_defaults=new double[PROPERTY_NUM];
+  //property_defaults=new double[PROPERTY_NUM];
   property_defaults[WIDTH]=10.0;
   property_defaults[COLOR]=100;
   property_defaults[TEXT]=0;



More information about the Lemon-commits mailing list