summaryrefslogtreecommitdiffstats
path: root/src/color-rgba.h
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-30 17:23:17 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-30 17:23:17 +0000
commit77edfe45996574c82f66c2156ce6e8037520c8ff (patch)
tree805458831d8f2b17e63793b4f84ad20f447a27d7 /src/color-rgba.h
parentFix make check (diff)
downloadinkscape-77edfe45996574c82f66c2156ce6e8037520c8ff.tar.gz
inkscape-77edfe45996574c82f66c2156ce6e8037520c8ff.zip
Minor pass of header cleanup
(bzr r13341.1.189)
Diffstat (limited to 'src/color-rgba.h')
-rw-r--r--src/color-rgba.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/color-rgba.h b/src/color-rgba.h
index ef7d9aee1..55cf68877 100644
--- a/src/color-rgba.h
+++ b/src/color-rgba.h
@@ -9,8 +9,9 @@
#ifndef SEEN_COLOR_RGBA_H
#define SEEN_COLOR_RGBA_H
-#include <glib.h> // g_assert()
+#include <cassert>
#include "decimal-round.h"
+typedef unsigned int guint32;
/**
* A class to contain a floating point RGBA color as one unit.
@@ -96,7 +97,7 @@ public:
* @return The requested value.
*/
float operator[](unsigned int const i) const {
- g_assert( unsigned(i) < 4 );
+ assert( unsigned(i) < 4 );
return _c[i];
}