]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Compiler errors on gcc 3.4.1 corrected:
authorsmh <smh@opencascade.com>
Thu, 9 Jun 2005 05:22:50 +0000 (05:22 +0000)
committersmh <smh@opencascade.com>
Thu, 9 Jun 2005 05:22:50 +0000 (05:22 +0000)
- missing declaration of a function added
- typedef'ed pointer-to-method didn't accept default arguments, so passing all function arguments explicitly

src/VISU_I/VISU_DumpPython.cc
src/VISU_I/VISU_View_i.cc

index 1474d24ef9caf7fe34f523497b88eb5829107e03..343f15efeec7aa169eccfd7d72f03067bcd83907 100644 (file)
@@ -229,6 +229,17 @@ namespace VISU{
     return thePrefix;
   }
 
+  //===========================================================================
+  // declaration
+  void DumpChildrenToPython(SALOMEDS::Study_ptr theStudy,
+                           CORBA::Boolean theIsPublished,
+                           CORBA::Boolean& theIsValidScript,
+                           SALOMEDS::SObject_ptr theSObject,
+                           std::ostream& theStr,
+                           TName2EntryMap& theName2EntryMap,
+                           TEntry2NameMap& theEntry2NameMap,
+                           std::string theArgumentName,
+                           std::string thePrefix);
   
   //===========================================================================
   template<class TTableAttr>
index 18254b0f9006b8494aeb70dfd3f4e936288d3943..4f0ce8a53b50ca0caf35605a7402ec23179af7f4 100644 (file)
@@ -681,7 +681,7 @@ namespace VISU{
   class TEnableGridEvent: public SALOME_Event
   {
   public:
-    typedef void (Plot2d_ViewFrame::* TFun)(bool, const int, bool, const int, bool = true);
+    typedef void (Plot2d_ViewFrame::* TFun)(bool, const int, bool, const int, bool);
     TEnableGridEvent (Plot2d_ViewFrame* theView, TFun theFun,
                      CORBA::Boolean theMajor, CORBA::Long theNumMajor,
                      CORBA::Boolean theMinor, CORBA::Long theNumMinor):
@@ -692,7 +692,7 @@ namespace VISU{
 
     virtual void Execute()
     {
-      (myView->*myFun)(myMajor,myNumMajor,myMinor,myNumMinor);
+      (myView->*myFun)(myMajor,myNumMajor,myMinor,myNumMinor,true);
     }
   protected:
     Plot2d_ViewFrame* myView;
@@ -717,14 +717,14 @@ namespace VISU{
   class TSetScaleModeEvent: public SALOME_Event
   {
   public:
-    typedef void (Plot2d_ViewFrame::* TFun)(const int, bool = true);
+    typedef void (Plot2d_ViewFrame::* TFun)(const int, bool);
     TSetScaleModeEvent (Plot2d_ViewFrame* theView, TFun theFun, int theScaling):
       myView(theView), myFun(theFun), myScaling(theScaling)
     {}
 
     virtual void Execute()
     {
-      (myView->*myFun)(myScaling);
+      (myView->*myFun)(myScaling,true);
     }
   protected:
     Plot2d_ViewFrame* myView;