]> git.lyx.org Git - features.git/commitdiff
... and sanitize the simplified code...
authorAngus Leeming <leeming@lyx.org>
Mon, 3 May 2004 15:47:39 +0000 (15:47 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 3 May 2004 15:47:39 +0000 (15:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8730 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/XFormsToolbar.C

index 75f457b8895d266251831a16b9211ea3501ddc91..5fef865c863e15b16d76bf5cf73fc50481a9a87f 100644 (file)
@@ -162,7 +162,6 @@ void XFormsToolbar::toolbarItem::generateInactivePixmaps()
        // "o c <inactive_color>",
        // "oooooooooooooooo", // <width> 'o' chars.
        // repeated <height> times.
-
        std::ostringstream line1_ss;
        line1_ss << width << ' ' << height << " 1 1";
        string const line1 = line1_ss.str();
@@ -173,20 +172,15 @@ void XFormsToolbar::toolbarItem::generateInactivePixmaps()
        inactive_data[0] = const_cast<char *>(line1.c_str());
        inactive_data[1] = const_cast<char *>(line2.c_str());
 
-       char ** raw_inactive_data =
-               const_cast<char **>(&*inactive_data.begin());
+       char ** raw_inactive_data = &*inactive_data.begin();
 
        // Generate a pixmap of this data set.
        // Together with 'mask' above, this is sufficient to display
        // an inactive version of our active_pixmap.
        Screen * screen = ScreenOfDisplay(display, fl_screen);
 
-       XpmCreatePixmapFromData(fl_get_display(),
-                               XRootWindowOfScreen(screen),
-                               raw_inactive_data,
-                               &inactive_pixmap,
-                               0,
-                               0);
+       XpmCreatePixmapFromData(display, XRootWindowOfScreen(screen),
+                               raw_inactive_data, &inactive_pixmap, 0, 0);
 }