Get rid of the static_casts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7142 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-06-10 15:13:48 +00:00
parent 954937fd33
commit bd1f4fa8f2

View 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