summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/spellcheck.cpp4
-rw-r--r--src/ui/tools/text-tool.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/spellcheck.cpp b/src/ui/dialog/spellcheck.cpp
index 254a53daa..01826fbd8 100644
--- a/src/ui/dialog/spellcheck.cpp
+++ b/src/ui/dialog/spellcheck.cpp
@@ -470,14 +470,14 @@ SpellCheck::nextWord()
void *rawptr;
Glib::ustring::iterator text_iter;
_layout->getSourceOfCharacter(_end_w, &rawptr, &text_iter);
- SPObject *char_item = SP_OBJECT(rawptr);
+ SPObject *char_item = reinterpret_cast<SPObject *>(rawptr);
if (SP_IS_STRING(char_item)) {
int this_char = *text_iter;
if (this_char == '\'' || this_char == 0x2019) {
Inkscape::Text::Layout::iterator end_t = _end_w;
end_t.nextCharacter();
_layout->getSourceOfCharacter(end_t, &rawptr, &text_iter);
- SPObject *char_item = SP_OBJECT(rawptr);
+ SPObject *char_item = reinterpret_cast<SPObject *>(rawptr);
if (SP_IS_STRING(char_item)) {
int this_char = *text_iter;
if (g_ascii_isalpha(this_char)) { // 's
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp
index 7434d598f..651a00632 100644
--- a/src/ui/tools/text-tool.cpp
+++ b/src/ui/tools/text-tool.cpp
@@ -1612,7 +1612,7 @@ int TextTool::_styleQueried(SPStyle *style, int property)
if (!rawptr || !SP_IS_OBJECT(rawptr)) {
continue;
}
- pos_obj = SP_OBJECT(rawptr);
+ pos_obj = reinterpret_cast<SPObject *>(rawptr);
while (SP_IS_STRING(pos_obj) && pos_obj->parent) {
pos_obj = pos_obj->parent; // SPStrings don't have style
}