summaryrefslogtreecommitdiff
path: root/project2/variables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/variables.cpp')
-rw-r--r--project2/variables.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/project2/variables.cpp b/project2/variables.cpp
index 3c27d44..09ea36e 100644
--- a/project2/variables.cpp
+++ b/project2/variables.cpp
@@ -1,4 +1,5 @@
#include "variables.h"
+#include "exceptions.h"
#include "appEngine.h"
#include "perRowValues.h"
#include "session.h"
@@ -52,7 +53,7 @@ class VariableParam : public VariableImplDyn {
try {
cache = ApplicationEngine::getCurrent()->env()->getParamQuery(name);
}
- catch (ApplicationEngine::ParamNotFound) {
+ catch (ParamNotFound) {
if (!defaultValue) {
throw;
}
@@ -73,7 +74,7 @@ class VariableUri : public VariableImplDyn {
try {
cache = ApplicationEngine::getCurrent()->env()->getParamUri(atoi(name.c_str()));
}
- catch (ApplicationEngine::UriElementOutOfRange) {
+ catch (UriElementOutOfRange) {
if (!defaultValue) {
throw;
}
@@ -109,7 +110,7 @@ class VariableParent : public VariableImplDyn, public RowUser {
try {
if (!row) {
PerRowValues::RowValuesStack::const_reverse_iterator r = PerRowValues::Stack().rbegin();
- for (size_t p = depth; --p; r++) ;
+ for (size_t p = depth; p--; r++) ;
if (r == PerRowValues::Stack().rend()) {
throw PerRowValues::ParentOutOfRange();
}