aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/qregisters.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-05-12 18:14:02 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 15:21:53 +0100
commit1f8d558597098f78aeba4ed5f70824f98dc60060 (patch)
treee3ed4e5f5fdb586ebda789d8516ec9473f5fb5ba /src/qregisters.h
parentabfabda5f54ac903bc990340a684e14e5e2b68a5 (diff)
downloadsciteco-1f8d558597098f78aeba4ed5f70824f98dc60060.tar.gz
removed most exception specifications: allow bad_allocs to propagate
* specifications resulted in runtime errors (unexpected exception) when bad_alloc ocurred * specs should be used scarcely: only when the errors that may be thrown are all known and for documentary purposes
Diffstat (limited to 'src/qregisters.h')
-rw-r--r--src/qregisters.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/qregisters.h b/src/qregisters.h
index 4b1ad3d..452abe7 100644
--- a/src/qregisters.h
+++ b/src/qregisters.h
@@ -110,7 +110,7 @@ public:
virtual void edit(void);
virtual void undo_edit(void);
- void execute(bool locals = true) throw (State::Error, ReplaceCmdline);
+ void execute(bool locals = true);
bool load(const gchar *filename);
inline void
@@ -284,7 +284,7 @@ public:
void reset(void);
- QRegister *input(gchar chr) throw (State::Error);
+ QRegister *input(gchar chr);
};
/*
@@ -301,16 +301,15 @@ public:
StateExpectQReg(bool initialize = false);
private:
- State *custom(gchar chr) throw (Error, ReplaceCmdline);
+ State *custom(gchar chr);
protected:
- virtual State *got_register(QRegister &reg)
- throw (Error, ReplaceCmdline) = 0;
+ virtual State *got_register(QRegister &reg) = 0;
};
class StatePushQReg : public StateExpectQReg {
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StatePopQReg : public StateExpectQReg {
@@ -318,7 +317,7 @@ public:
StatePopQReg() : StateExpectQReg(true) {}
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateEQCommand : public StateExpectQReg {
@@ -326,12 +325,12 @@ public:
StateEQCommand() : StateExpectQReg(true) {}
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateLoadQReg : public StateExpectFile {
private:
- State *done(const gchar *str) throw (Error);
+ State *done(const gchar *str);
};
class StateCtlUCommand : public StateExpectQReg {
@@ -339,7 +338,7 @@ public:
StateCtlUCommand() : StateExpectQReg(true) {}
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateSetQRegString : public StateExpectString {
@@ -347,17 +346,17 @@ public:
StateSetQRegString() : StateExpectString(false) {}
private:
- State *done(const gchar *str) throw (Error);
+ State *done(const gchar *str);
};
class StateGetQRegString : public StateExpectQReg {
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateGetQRegInteger : public StateExpectQReg {
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateSetQRegInteger : public StateExpectQReg {
@@ -365,7 +364,7 @@ public:
StateSetQRegInteger() : StateExpectQReg(true) {}
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateIncreaseQReg : public StateExpectQReg {
@@ -373,17 +372,17 @@ public:
StateIncreaseQReg() : StateExpectQReg(true) {}
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
class StateMacro : public StateExpectQReg {
private:
- State *got_register(QRegister &reg) throw (Error, ReplaceCmdline);
+ State *got_register(QRegister &reg);
};
class StateMacroFile : public StateExpectFile {
private:
- State *done(const gchar *str) throw (Error, ReplaceCmdline);
+ State *done(const gchar *str);
};
class StateCopyToQReg : public StateExpectQReg {
@@ -391,7 +390,7 @@ public:
StateCopyToQReg() : StateExpectQReg(true) {}
private:
- State *got_register(QRegister &reg) throw (Error);
+ State *got_register(QRegister &reg);
};
namespace States {