summaryrefslogtreecommitdiffstats
path: root/src/axis-manip.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-09-03 18:25:48 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-09-03 18:25:48 +0000
commit9b05e3f6b467e76135769720f6e39a02d61343f3 (patch)
tree1075a5bd78d3361017f2098280d9dd1c1d1abde5 /src/axis-manip.h
parentFix build (diff)
downloadinkscape-9b05e3f6b467e76135769720f6e39a02d61343f3.tar.gz
inkscape-9b05e3f6b467e76135769720f6e39a02d61343f3.zip
undo some things from rev 13530, to fix compile with gcc 4.9.0 -Werror=return-type (don't want to give up that flag)
(bzr r13341.1.194)
Diffstat (limited to 'src/axis-manip.h')
-rw-r--r--src/axis-manip.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/axis-manip.h b/src/axis-manip.h
index 619b9089c..70cdb557e 100644
--- a/src/axis-manip.h
+++ b/src/axis-manip.h
@@ -15,6 +15,7 @@
#include <cassert>
#include <string>
#include <utility>
+#include <glib.h>
namespace Proj {
@@ -104,7 +105,7 @@ inline Proj::Axis toProj(Box3D::Axis axis) {
case Box3D::NONE:
return Proj::NONE;
default:
- assert(false);
+ g_assert_not_reached();
}
}
@@ -127,7 +128,7 @@ inline Box3D::Axis toAffine(Proj::Axis axis) {
case Proj::NONE:
return Box3D::NONE;
default:
- assert(false);
+ g_assert_not_reached();
}
}