From e7e9cf2849d0000acf47ecde86e4853687a03409 Mon Sep 17 00:00:00 2001 From: Jan Darmochwal Date: Thu, 7 Oct 2010 16:56:12 +0200 Subject: Tidy up the code * fixed compiler warnings, added -Werror to CMakeLists.txt * removed LibXml2 and boost stuff from CMakeLists.txt * fixed some things cpplint.py complains about: * make single-argument constructors explicit * add space before if/for/while/... * don't put { on a line of its own * remove space after ! operator * add space between // and comment * remove extra space before ( in function call * remove extra space before ) * shorten lines to <= 80 characters * remove blank lines at the start of a code block * maybe others --- src/vsession.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vsession.h') diff --git a/src/vsession.h b/src/vsession.h index da3a5a4..0a1bf71 100644 --- a/src/vsession.h +++ b/src/vsession.h @@ -16,7 +16,7 @@ enum ImgType { }; class VSession : public Session { -public: + public: bool init(const QString& xml, const QString& baseDirPath); ImgType imgtype() const; @@ -56,7 +56,7 @@ public: bool replace = true); // TODO: remove next line void addTODO(const QString& value, const QString& nodeName, - const QString& attribute = "param"); // TODO: this adds node and attribute + const QString& attribute = "param"); // TODO: remove next line void addNodeText(const QString& text, const QString& nodeName); @@ -73,7 +73,7 @@ public: static QList readXmlDir(const QString& path); static QList readXmlFile(const QString& filepath); -private: + private: QDomDocument doc_; QString baseDirPath_; }; -- cgit v1.2.3-55-g7522