summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2017-02-06 15:34:17 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2017-02-06 15:34:17 +0000
commit1e3e159499532a145cf09af2dbd1de2ae4d8d565 (patch)
tree77ef4131505efaf531c260d52afecba0137a372c /src/widgets
parentExtensions: Support for very old versions of Scour (<= 0.26) (diff)
downloadinkscape-1e3e159499532a145cf09af2dbd1de2ae4d8d565.tar.gz
inkscape-1e3e159499532a145cf09af2dbd1de2ae4d8d565.zip
Remove some unneeded < C++11 fallback code
(bzr r15485)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/desktop-widget.cpp5
-rw-r--r--src/widgets/gimp/ruler.cpp5
2 files changed, 2 insertions, 8 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 0a43bc7b2..7dae5d12f 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -68,11 +68,6 @@
#include <gtkmm/messagedialog.h>
#include <iomanip>
-#if defined (SOLARIS) && (SOLARIS == 8)
-#include "round.h"
-using Inkscape::round;
-#endif
-
using Inkscape::UI::Widget::UnitTracker;
using Inkscape::UI::UXManager;
using Inkscape::UI::ToolboxFactory;
diff --git a/src/widgets/gimp/ruler.cpp b/src/widgets/gimp/ruler.cpp
index 2a71b5c08..6a1f7f903 100644
--- a/src/widgets/gimp/ruler.cpp
+++ b/src/widgets/gimp/ruler.cpp
@@ -34,11 +34,10 @@
#include <cstdio>
#include "ruler.h"
-#include "round.h"
#include <glibmm/i18n.h>
#include "util/units.h"
-#define ROUND(x) ((int) ((x) + 0.5))
+#define ROUND(x) ((int) round(x))
#define GTK_PARAM_READWRITE G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
@@ -1217,7 +1216,7 @@ sp_ruler_draw_ticks (SPRuler *ruler)
// be e.g. 641.50000000000; rounding behaviour is not defined in such a case (see round.h)
// and jitter will be apparent (upon redrawing some of the lines on the ruler might jump a
// by a pixel, and jump back on the next redraw). This is suppressed by adding 1e-9 (that's only one nanopixel ;-))
- pos = gint(Inkscape::round((cur - lower) * increment + 1e-12));
+ pos = gint(round((cur - lower) * increment + 1e-12));
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{