Code

remove g++ 4.1.1 compiler errors
authorishmal <ishmal@users.sourceforge.net>
Sat, 18 Nov 2006 12:51:08 +0000 (12:51 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sat, 18 Nov 2006 12:51:08 +0000 (12:51 +0000)
src/extension/internal/ps.cpp
src/extension/internal/ps.h

index fe668a138d977289d641899a739aab5c5ebf389a..1301e888aaa26fd120df0681680d7f273238b09f 100644 (file)
@@ -1274,9 +1274,9 @@ PrintPS::text(Inkscape::Extension::Print *mod, char const *text, NR::Point p,
     * (TODO?)
     * Else, back to the former way of printing.
     */
-    gchar* is_embedded;
+    gpointer  is_embedded;
     //if not first time the font is used and if font embedding requested, check whether the font has been embedded (successfully the first time).
-    if(g_tree_lookup_extended(_fonts, fn, NULL, (gpointer*)&is_embedded)) font_embedded = font_embedded && (strcmp(is_embedded, "TRUE") == 0);
+    if(g_tree_lookup_extended(_fonts, fn, NULL, &is_embedded)) font_embedded = font_embedded && (strcmp((char *)is_embedded, "TRUE") == 0);
     else
     {
       //first time the font is used
index a5dea8c6944636122e42c20a5f09122d78bd9229..673cde82c4722e470546b3f31da17f112c3c40b8 100644 (file)
@@ -53,10 +53,10 @@ class PrintPS : public Inkscape::Extension::Implementation::Implementation {
     void print_stroke_style(SVGOStringStream &os, SPStyle const *style);
 
     char const *PSFontName(SPStyle const *style);
-    bool PrintPS::embed_t1(SVGOStringStream &os, font_instance* font);
-    bool PrintPS::embed_font(SVGOStringStream &os, font_instance* font);
+    bool embed_t1(SVGOStringStream &os, font_instance* font);
+    bool embed_font(SVGOStringStream &os, font_instance* font);
 
-    void PrintPS::print_glyphlist(SVGOStringStream &os, font_instance* font, Glib::ustring unistring);
+    void print_glyphlist(SVGOStringStream &os, font_instance* font, Glib::ustring unistring);
 
     unsigned int print_image(FILE *ofp, guchar *px, unsigned int width, unsigned int height, unsigned int rs,
                              NRMatrix const *transform);