From aedf7c6b5b7ef383475dd8f4cd2a390b29834025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 30 May 2002 09:48:07 +0000 Subject: [PATCH] =?UTF-8?q?2002-05-30=20=20Lars=20Gullik=20Bj=EF=BF=BDnnes?= =?UTF-8?q?=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FileDialog.C (FileDialog): fix () bug when using new xformsGImage.C (newImage): ditto Toolbar_pimpl.C (Pimpl): ditto xfont_loader.C (getFontinfo): ditto git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4295 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 7 +++++++ src/frontends/xforms/FileDialog.C | 2 +- src/frontends/xforms/Toolbar_pimpl.C | 2 +- src/frontends/xforms/xfont_loader.C | 2 +- src/frontends/xforms/xformsGImage.C | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 396c23a779..9450fb0ae6 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,10 @@ +2002-05-30 Lars Gullik Bjønnes + + * FileDialog.C (FileDialog): fix () bug when using new + * xformsGImage.C (newImage): ditto + * Toolbar_pimpl.C (Pimpl): ditto + * xfont_loader.C (getFontinfo): ditto + 2002-05-29 Lars Gullik Bjønnes * switch from SigC signals to boost::signals. diff --git a/src/frontends/xforms/FileDialog.C b/src/frontends/xforms/FileDialog.C index fc8b0e10e5..bdbf6cde4a 100644 --- a/src/frontends/xforms/FileDialog.C +++ b/src/frontends/xforms/FileDialog.C @@ -33,7 +33,7 @@ using std::endl; FileDialog::FileDialog(LyXView *lv, string const &t, kb_action s, Button b1, Button b2) : private_(0), lv_(lv), title_(t), success_(s) { - private_ = new FileDialog::Private(); + private_ = new FileDialog::Private; private_->SetButton(0, b1.first, b1.second); private_->SetButton(1, b2.first, b2.second); diff --git a/src/frontends/xforms/Toolbar_pimpl.C b/src/frontends/xforms/Toolbar_pimpl.C index b4c7c523eb..4cf65b6999 100644 --- a/src/frontends/xforms/Toolbar_pimpl.C +++ b/src/frontends/xforms/Toolbar_pimpl.C @@ -89,7 +89,7 @@ Toolbar::Pimpl::Pimpl(LyXView * o, int x, int y) : owner(static_cast(o)), sxpos(x), sypos(y) { combox = 0; - tooltip_ = new Tooltips(); + tooltip_ = new Tooltips; } diff --git a/src/frontends/xforms/xfont_loader.C b/src/frontends/xforms/xfont_loader.C index 3abaf0da6e..cbadcf99d1 100644 --- a/src/frontends/xforms/xfont_loader.C +++ b/src/frontends/xforms/xfont_loader.C @@ -158,7 +158,7 @@ void FontLoader::getFontinfo(LyXFont::FONT_FAMILY family, string norm = lyxrc.font_norm; string fontname; - FontInfo * fi = new FontInfo(); + FontInfo * fi = new FontInfo; fontinfo[family][series][shape] = fi; for (int cfam = 0; cfam < 2; ++cfam) { diff --git a/src/frontends/xforms/xformsGImage.C b/src/frontends/xforms/xformsGImage.C index 5aaf130ec8..8afb32bc70 100644 --- a/src/frontends/xforms/xformsGImage.C +++ b/src/frontends/xforms/xformsGImage.C @@ -40,7 +40,7 @@ ImagePtr xformsGImage::newImage() init_graphics(); ImagePtr ptr; - ptr.reset(new xformsGImage()); + ptr.reset(new xformsGImage); return ptr; }