From 9a219078c76d4591d466efec8959621a250dd5b5 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Wed, 5 Nov 2014 15:06:54 +0100 Subject: [PATCH] Made some throw methods static. --- tool/Command.cpp | 6 +++--- tool/Command.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tool/Command.cpp b/tool/Command.cpp index 63a69e6d..dccc9d64 100644 --- a/tool/Command.cpp +++ b/tool/Command.cpp @@ -270,21 +270,21 @@ string Command::numericInfo() /*****************************************************************************/ -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); } diff --git a/tool/Command.h b/tool/Command.h index 70b41793..1f28723a 100644 --- a/tool/Command.h +++ b/tool/Command.h @@ -132,9 +132,9 @@ class Command 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 SlaveList;