[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate/frameworks] plasmoidviewer: Fix typos and add missing consts
From:       Antonis Tsiapaliokas <kok3rs () gmail ! com>
Date:       2014-02-20 16:52:27
Message-ID: E1WGWrL-0007TZ-C9 () scm ! kde ! org
[Download RAW message or body]

Git commit 305f5c7670e48ef3f6a2a6dddaf5fa5912fa2b00 by Antonis Tsiapaliokas.
Committed on 20/02/2014 at 16:00.
Pushed by tsiapaliokas into branch 'frameworks'.

Fix typos and add missing consts

M  +4    -4    plasmoidviewer/main.cpp

http://commits.kde.org/plasmate/305f5c7670e48ef3f6a2a6dddaf5fa5912fa2b00

diff --git a/plasmoidviewer/main.cpp b/plasmoidviewer/main.cpp
index 1f9c0f7..e8e9b98 100644
--- a/plasmoidviewer/main.cpp
+++ b/plasmoidviewer/main.cpp
@@ -69,7 +69,7 @@ int main(int argc, char **argv)
                 i18n("Set the y position of the plasmoidviewer on the plasma desktop"),
                 QStringLiteral("yPosition")));
     parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("s") << QStringLiteral("size"),
-                i18n("Set the x position of the plasmoidviewer on the plasma desktop"),
+                i18n("Set the window size of the plasmoidview"),
                 QStringLiteral("widthXheight")));
     parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("p") << QStringLiteral("pixmapcache"),
                 i18n("The size in kB to set the pixmap cache to"),
@@ -97,9 +97,9 @@ int main(int argc, char **argv)
     v->addLocation(parser.value("location"));
 
     if (parser.isSet("size")) {
-        QStringList realSize = parser.value("size").split(QChar('x'));
-        int realWidth = realSize.at(0).toInt();
-        int realHeight = realSize.at(1).toInt();
+        const QStringList realSize = parser.value("size").split(QChar('x'));
+        const int realWidth = realSize.at(0).toInt();
+        const int realHeight = realSize.at(1).toInt();
         if (realWidth != 0 && realHeight != 0) {
             v->setWidth(realWidth);
             v->setHeight(realHeight);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic