aboutsummaryrefslogtreecommitdiffstats
path: root/src/diagram/BranchStatement.cpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-12-18 00:00:21 +0100
committerNao Pross <naopross@thearcway.org>2017-12-18 00:00:21 +0100
commit2e27a93e3ed189b4d96ec7df6e05b102dd2e841a (patch)
tree6952edd5db3b4075532c4ce75bda764d5a67051b /src/diagram/BranchStatement.cpp
parentUpdate .gitignore and minor changes (mostly formatting) (diff)
downloadOrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.tar.gz
OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.zip
Replace tabs with spaces, set up CMake build system
Other changes: - update gitignore - build scripts under `etc` - fix window
Diffstat (limited to 'src/diagram/BranchStatement.cpp')
-rw-r--r--src/diagram/BranchStatement.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/diagram/BranchStatement.cpp b/src/diagram/BranchStatement.cpp
index d960ef9..6345c1b 100644
--- a/src/diagram/BranchStatement.cpp
+++ b/src/diagram/BranchStatement.cpp
@@ -7,17 +7,15 @@
#include "BranchStatement.hpp"
-namespace samb {
+using namespace samb;
BranchStatement::BranchStatement(Type t, const std::string& condition, pointer next): Statement(t, condition, next) {
- switch (t) {
- case Statement::Type::DECISION:
- case Statement::Type::SWITCH:
- break;
+ switch (t) {
+ case Statement::Type::DECISION:
+ case Statement::Type::SWITCH:
+ break;
- default:
- throw std::invalid_argument("BranchStatement can only be of type DECISION or SWITCH");
- }
+ default:
+ throw std::invalid_argument("BranchStatement can only be of type DECISION or SWITCH");
+ }
}
-
-} /* namespace samb */