Made some throw methods static.
authorFlorian Pose <fp@igh-essen.com>
Wed, 05 Nov 2014 15:06:54 +0100
changeset 2590 0e207abed88a
parent 2589 2b9c78543663
child 2591 23b360e4a530
Made some throw methods static.
tool/Command.cpp
tool/Command.h
--- a/tool/Command.cpp	Mon Nov 03 15:20:05 2014 +0100
+++ b/tool/Command.cpp	Wed Nov 05 15:06:54 2014 +0100
@@ -270,21 +270,21 @@
 
 /*****************************************************************************/
 
-void Command::throwInvalidUsageException(const stringstream &s) const
+void Command::throwInvalidUsageException(const stringstream &s)
 {
     throw InvalidUsageException(s);
 }
 
 /*****************************************************************************/
 
-void Command::throwCommandException(const string &msg) const
+void Command::throwCommandException(const string &msg)
 {
     throw CommandException(msg);
 }
 
 /*****************************************************************************/
 
-void Command::throwCommandException(const stringstream &s) const
+void Command::throwCommandException(const stringstream &s)
 {
     throw CommandException(s);
 }
--- a/tool/Command.h	Mon Nov 03 15:20:05 2014 +0100
+++ b/tool/Command.h	Wed Nov 05 15:06:54 2014 +0100
@@ -132,9 +132,9 @@
     protected:
         enum {BreakAfterBytes = 16};
 
-        void throwInvalidUsageException(const stringstream &) const;
-        void throwCommandException(const string &) const;
-        void throwCommandException(const stringstream &) const;
+        static void throwInvalidUsageException(const stringstream &);
+        static void throwCommandException(const string &);
+        static void throwCommandException(const stringstream &);
         void throwSingleSlaveRequired(unsigned int) const;
 
         typedef list<ec_ioctl_slave_t> SlaveList;