summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-16 14:27:56 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-16 14:27:56 (GMT)
commitd0b8795476a1a68789f5642a02411c594234bdf0 (patch)
tree9b4fbbd36afd7d001300cbae74017cbb254d14d0
parentb813820faf2fecbb8df703a23b7e4393fddccbf9 (diff)
Rename method
-rw-r--r--autotests/renamecategorytest.cpp2
-rw-r--r--src/kdebugsettingsutil.cpp4
-rw-r--r--src/kdebugsettingsutil.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/autotests/renamecategorytest.cpp b/autotests/renamecategorytest.cpp
index bedf151..d679b7f 100644
--- a/autotests/renamecategorytest.cpp
+++ b/autotests/renamecategorytest.cpp
@@ -59,7 +59,7 @@ void RenameCategoryTest::shouldParseRenameLine()
RenameCategory result;
result.originalName = original;
result.newName = newname;
- const RenameCategory cat = KDebugSettingsUtil::parseRenameCategories(input);
+ const RenameCategory cat = KDebugSettingsUtil::parseRenameCategory(input);
QCOMPARE(cat, result);
QCOMPARE(cat.isValid(), valid);
}
diff --git a/src/kdebugsettingsutil.cpp b/src/kdebugsettingsutil.cpp
index 076a691..089c519 100644
--- a/src/kdebugsettingsutil.cpp
+++ b/src/kdebugsettingsutil.cpp
@@ -22,7 +22,7 @@
#include "kdebugsettings_debug.h"
#include <QFile>
-RenameCategory KDebugSettingsUtil::parseRenameCategories(QString line)
+RenameCategory KDebugSettingsUtil::parseRenameCategory(QString line)
{
RenameCategory category;
int pos = line.indexOf(QLatin1Char('#'));
@@ -62,7 +62,7 @@ RenameCategory::List KDebugSettingsUtil::readRenameCategories(const QString &fil
ts.setCodec("ISO-8859-1");
while (!ts.atEnd()) {
data = ts.readLine().simplified();
- const RenameCategory category = parseRenameCategories(data);
+ const RenameCategory category = parseRenameCategory(data);
if (category.isValid()) {
insertCategories.append(category);
}
diff --git a/src/kdebugsettingsutil.h b/src/kdebugsettingsutil.h
index 7cbf640..cc879a4 100644
--- a/src/kdebugsettingsutil.h
+++ b/src/kdebugsettingsutil.h
@@ -109,7 +109,7 @@ KdeLoggingCategory::List readLoggingCategoriesForInserting(const QString &filena
QList<LoadLoggingCategory> readLoggingQtCategories(const QString &filename);
KDebugSettingsUtil::LineLoggingQtCategory parseLineLoggingQtCategory(const QString &line);
-RenameCategory parseRenameCategories(QString line);
+RenameCategory parseRenameCategory(QString line);
RenameCategory::List readRenameCategories(const QString &filename);
}