summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-07-19 11:01:35 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-07-19 11:01:35 +0000
commit5f9e395816f2194880d84f204b2050d2f714b4bd (patch)
tree3916a1f3127adfd93dacbac023c38011c4305ba5 /src/libnrtype
parentMinor code cleanup after baeb92c8b275ada9a09187772e11f8b32b7ae6ef (diff)
downloadinkscape-5f9e395816f2194880d84f204b2050d2f714b4bd.tar.gz
inkscape-5f9e395816f2194880d84f204b2050d2f714b4bd.zip
Remove unnecessary cast which creates a temporary object that then goes out of scope.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontFactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp
index 6c0999f2d..fe0da45dc 100644
--- a/src/libnrtype/FontFactory.cpp
+++ b/src/libnrtype/FontFactory.cpp
@@ -198,7 +198,7 @@ const char *sp_font_description_get_family(PangoFontDescription const *fontDescr
const char *pangoFamily = pango_font_description_get_family(fontDescr);
if (pangoFamily && ((it = fontNameMap.find(pangoFamily)) != fontNameMap.end())) {
- return ((Glib::ustring)it->second).c_str();
+ return (it->second).c_str();
}
return pangoFamily;