Xcos MVC: add a test and use unnamed functions parameters
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / ParamsAdapter.cpp
index ab8faac..9bbdd22 100644 (file)
@@ -40,23 +40,14 @@ const std::wstring scsopt(L"scsopt");
 struct dummy_property
 {
 
-    static types::InternalType* get(const ParamsAdapter& adaptor, const Controller& controller)
+    static types::InternalType* get(const ParamsAdapter& /*adaptor*/, const Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) adaptor;
-        (void) controller;
-
         // Return a default empty matrix.
         return types::Double::Empty();
     }
 
-    static bool set(ParamsAdapter& adaptor, types::InternalType* v, Controller& controller)
+    static bool set(ParamsAdapter& /*adaptor*/, types::InternalType* /*v*/, Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) adaptor;
-        (void) v;
-        (void) controller;
-
         // everything should be right as the properties mapped using this adapter do not perform anything
         return true;
     }
@@ -273,12 +264,8 @@ struct context
 struct options
 {
 
-    static types::InternalType* get(const ParamsAdapter& adaptor, const Controller& controller)
+    static types::InternalType* get(const ParamsAdapter& /*adaptor*/, const Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) adaptor;
-        (void) controller;
-
         // Return a dummy 'scsopt'-typed tlist.
         types::String* header = new types::String(scsopt.c_str());
 
@@ -296,19 +283,13 @@ struct options
 
 struct doc
 {
-    static types::InternalType* get(const ParamsAdapter& adaptor, const Controller& controller)
+    static types::InternalType* get(const ParamsAdapter& adaptor, const Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) controller;
-
         return adaptor.getDocContent();
     }
 
-    static bool set(ParamsAdapter& adaptor, types::InternalType* v, Controller& controller)
+    static bool set(ParamsAdapter& adaptor, types::InternalType* v, Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) controller;
-
         adaptor.setDocContent(v->clone());
         return true;
     }