From f0230e1d9ade10a0d0468e4c5fda4624c18caf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 23 Nov 2007 21:49:58 +0000 Subject: [PATCH] remove unneeded default argument value git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21748 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/Painter.h | 2 +- src/frontends/qt4/qt_helpers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/Painter.h b/src/frontends/Painter.h index 50f06d4872..ab65b55adb 100644 --- a/src/frontends/Painter.h +++ b/src/frontends/Painter.h @@ -117,7 +117,7 @@ public: */ virtual int text(int x, int y, docstring const & str, FontInfo const & f) = 0; - void setDrawingEnabled(bool drawing_enabled = true) + void setDrawingEnabled(bool drawing_enabled) { drawing_enabled_ = drawing_enabled; } /// Indicate wether real screen drawing shall be done or not. diff --git a/src/frontends/qt4/qt_helpers.cpp b/src/frontends/qt4/qt_helpers.cpp index 1063bbcf16..eb840d97d7 100644 --- a/src/frontends/qt4/qt_helpers.cpp +++ b/src/frontends/qt4/qt_helpers.cpp @@ -199,7 +199,7 @@ private: vector const getLanguageData(bool character_dlg) { - size_t const size = languages.size() + character_dlg ? 2 : 0; + size_t const size = languages.size() + (character_dlg ? 2 : 0); vector langs(size);