]> git.lyx.org Git - lyx.git/blobdiff - src/ColorHandler.C
Some more fixes to compiler warnings.
[lyx.git] / src / ColorHandler.C
index 82b71e8d56eb16fad119a97249c44d0b1cd9ce4f..416f09fea706e055c519c15c4c972f29d4faa818 100644 (file)
@@ -86,7 +86,7 @@ GC LyXColorHandler::getGCForeground(LColor::color c)
         if (XLookupColor(display, colormap, s.c_str(), &xcol, &ccol) == 0) {
                lyxerr << _("LyX: Unknown X11 color ") << s
                       << _(" for ") << lcolor.getGUIName(c) << '\n'
-                      << _("     Using black instead, sorry!.") << endl;
+                      << _("     Using black instead, sorry!") << endl;
                unsigned long bla = BlackPixel(display,
                                               DefaultScreen(display));
                val.foreground = bla;
@@ -108,7 +108,6 @@ GC LyXColorHandler::getGCForeground(LColor::color c)
                // the color closest to the one we want.
                Visual * vi = DefaultVisual(display, DefaultScreen(display));
 
-               //XColor * cmap = new XColor[vi->map_entries];
                boost::scoped_array<XColor> cmap(new XColor[vi->map_entries]);
 
                for (int i = 0; i < vi->map_entries; ++i) {
@@ -154,7 +153,6 @@ GC LyXColorHandler::getGCForeground(LColor::color c)
                       << _("Pixel [") << closest_pixel << _("] is used.") 
                       << endl;
                val.foreground = cmap[closest_pixel].pixel;
-               //delete[] cmap;
        }
 
        val.function = GXcopy;