From 79e12182cb9e8f34a38d7f40375b4ae0dda6270c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 15 Nov 2007 19:46:30 +0000 Subject: [PATCH] cosmetics and comments. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21630 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/Application.h | 3 ++- src/frontends/qt4/GuiApplication.cpp | 7 +++---- src/frontends/qt4/GuiApplication.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontends/Application.h b/src/frontends/Application.h index 87293abbfb..8ca6ace8a3 100644 --- a/src/frontends/Application.h +++ b/src/frontends/Application.h @@ -214,7 +214,8 @@ public: virtual void unregisterSocketCallback(int fd) = 0; /// Create the main window with given geometry settings. - virtual LyXView & createView(std::string const & geometryArg) = 0; + /// \param geometry_arg: only for Windows platform. + virtual LyXView & createView(std::string const & geometry_arg) = 0; /// LyXView const * currentView() const { return current_view_; } diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index cac3014b2c..0cfd6d104b 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -195,7 +195,7 @@ GuiApplication::~GuiApplication() } -LyXView & GuiApplication::createView(string const & geometryArg) +LyXView & GuiApplication::createView(string const & geometry_arg) { int const id = gui_.createRegisteredView(); GuiView & view = static_cast(gui_.view(id)); @@ -203,13 +203,12 @@ LyXView & GuiApplication::createView(string const & geometryArg) view.init(); view.show(); - if (!geometryArg.empty()) - { + if (!geometry_arg.empty()) { #ifdef Q_WS_WIN int x, y; int w, h; QRegExp re( "[=]*(?:([0-9]+)[xX]([0-9]+)){0,1}[ ]*(?:([+-][0-9]*)([+-][0-9]*)){0,1}" ); - re.indexIn(toqstr(geometryArg.c_str())); + re.indexIn(toqstr(geometry_arg.c_str())); w = re.cap(1).toInt(); h = re.cap(2).toInt(); x = re.cap(3).toInt(); diff --git a/src/frontends/qt4/GuiApplication.h b/src/frontends/qt4/GuiApplication.h index 6d8f8cb502..2d5a547f6c 100644 --- a/src/frontends/qt4/GuiApplication.h +++ b/src/frontends/qt4/GuiApplication.h @@ -70,7 +70,7 @@ public: virtual void updateColor(ColorCode col); virtual void registerSocketCallback(int fd, SocketCallback func); void unregisterSocketCallback(int fd); - LyXView & createView(std::string const & geometryArg); + LyXView & createView(std::string const & geometry_arg); //@} /// Methods inherited from \c QApplication class -- 2.39.5