]> git.lyx.org Git - lyx.git/commitdiff
Get rid of the static_casts.
authorAngus Leeming <leeming@lyx.org>
Tue, 10 Jun 2003 15:13:48 +0000 (15:13 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 10 Jun 2003 15:13:48 +0000 (15:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7142 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/QDocument.C

index f1f66258bf90c815d19daecabbee5d2b826507bf..13dec25629563e26985df0465fb40acabcee6702 100644 (file)
@@ -337,8 +337,8 @@ void QDocument::apply()
        params.float_placement = dialog_->floatModule->get();
 
        // paper
-       params.papersize2 = static_cast<BufferParams::VMARGIN_PAPER_TYPE>
-               (dialog_->pageLayoutModule->papersizeCO->currentItem());
+       params.papersize2 = BufferParams::VMARGIN_PAPER_TYPE(
+               dialog_->pageLayoutModule->papersizeCO->currentItem());
 
        params.paperwidth = widgetsToLength(dialog_->pageLayoutModule->paperwidthLE,
                dialog_->pageLayoutModule->paperwidthUnitCO);
@@ -364,7 +364,7 @@ void QDocument::apply()
        if (margin > 0) {
                margin = margin - 1;
        }
-       params.paperpackage = static_cast<BufferParams::PAPER_PACKAGES>(margin);
+       params.paperpackage = BufferParams::PAPER_PACKAGES(margin);
 
        // set params.papersize from params.papersize2
        // and params.paperpackage