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

List:       kde-commits
Subject:    [baloo] src/tools/balooctl: StatusCommand: Remove extra variable
From:       Vishesh Handa <me () vhanda ! in>
Date:       2015-12-14 23:46:14
Message-ID: E1a8coo-0001XZ-2s () scm ! kde ! org
[Download RAW message or body]

Git commit 9568d9cd802725ead2179808e5414c0bc0b3a911 by Vishesh Handa.
Committed on 14/12/2015 at 23:30.
Pushed by vhanda into branch 'master'.

StatusCommand: Remove extra variable

M  +1    -3    src/tools/balooctl/statuscommand.cpp

http://commits.kde.org/baloo/9568d9cd802725ead2179808e5414c0bc0b3a911

diff --git a/src/tools/balooctl/statuscommand.cpp b/src/tools/balooctl/statuscommand.cpp
index 93c5b61..0074f6b 100644
--- a/src/tools/balooctl/statuscommand.cpp
+++ b/src/tools/balooctl/statuscommand.cpp
@@ -101,8 +101,6 @@ int StatusCommand::exec(const QCommandLineParser& parser)
             out << "Index does not exist yet\n";
         }
     } else {
-        IndexerConfig config;
-
         for (const QString& arg : args) {
             QString filePath = QFileInfo(arg).absoluteFilePath();
             quint64 id = filePathToId(QFile::encodeName(filePath));
@@ -112,7 +110,7 @@ int StatusCommand::exec(const QCommandLineParser& parser)
             out << "Basic Indexing: ";
             if (tr.hasDocument(id)) {
                 out << "Done\n";
-            } else if (config.shouldBeIndexed(filePath)) {
+            } else if (cfg.shouldBeIndexed(filePath)) {
                 out << "Scheduled\n";
                 return 0;
             } else {

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

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