[cgma-dev] r6056 - cgm/trunk/util

janehu at mcs.anl.gov janehu at mcs.anl.gov
Thu Sep 5 11:59:18 CDT 2013


Author: janehu
Date: 2013-09-05 11:59:18 -0500 (Thu, 05 Sep 2013)
New Revision: 6056

Modified:
   cgm/trunk/util/CubitMessage.hpp
   cgm/trunk/util/CubitVector.hpp
   cgm/trunk/util/DLIList.cpp
   cgm/trunk/util/SDLList.hpp
Log:
Minor changes to remove warnings for builds, fix provided by DanQing Wu.

Modified: cgm/trunk/util/CubitMessage.hpp
===================================================================
--- cgm/trunk/util/CubitMessage.hpp	2013-08-17 20:07:00 UTC (rev 6055)
+++ cgm/trunk/util/CubitMessage.hpp	2013-09-05 16:59:18 UTC (rev 6056)
@@ -404,9 +404,9 @@
   int  number_of_debug_flags();
   //- debug flag, used with internal_error
 
-  virtual void set_debug_flag_gui(bool flag){};
+  virtual void set_debug_flag_gui(bool flag){flag = flag;};
   virtual int is_debug_flag_gui_set(){return 0;};
-  virtual int print_debug_gui( const char *format, ... ){return 0;};
+  virtual int print_debug_gui( const char *format, ... ){format = format; return 0;};
   //- write out a debug message (from GUI only)
   //- used for GUI Debugging (CAT-only)
 

Modified: cgm/trunk/util/CubitVector.hpp
===================================================================
--- cgm/trunk/util/CubitVector.hpp	2013-08-17 20:07:00 UTC (rev 6055)
+++ cgm/trunk/util/CubitVector.hpp	2013-09-05 16:59:18 UTC (rev 6056)
@@ -313,26 +313,26 @@
   xyz[1] = yVal;
   xyz[2] = zVal;
 }
-inline void CubitVector::get_xyz(double &x, double &y, double &z) const
+inline void CubitVector::get_xyz(double &xOut, double &yOut, double &zOut) const
 {
-  x = xVal; 
-  y = yVal; 
-  z = zVal;
+  xOut = xVal; 
+  yOut = yVal; 
+  zOut = zVal;
 }
 inline double &CubitVector::r()
 { return xVal; }
 inline double &CubitVector::theta()
 { return yVal; }
-inline void CubitVector::x( const double x )
-{ xVal = x; }
-inline void CubitVector::y( const double y )
-{ yVal = y; }
-inline void CubitVector::z( const double z )
-{ zVal = z; }
-inline void CubitVector::r( const double x )
-{ xVal = x; }
-inline void CubitVector::theta( const double y )
-{ yVal = y; }
+inline void CubitVector::x( const double xIn )
+{ xVal = xIn; }


More information about the cgma-dev mailing list