summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-02-20 07:27:43 +0100
committerLaurent Montel <[email protected]>2018-02-20 07:27:43 +0100
commit244d265f93a1202e4fc6e43086b5e53d0bd702ab (patch)
tree2b5bc4bd7e4ede2194ad4a913bcae2b3a06498b5
parentb364e81ab18727823caf8e0c532d5e4019b55a53 (diff)
const'ify method
-rw-r--r--src/kdeapplicationtreelistwidget.cpp4
-rw-r--r--src/kdeapplicationtreelistwidget.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/kdeapplicationtreelistwidget.cpp b/src/kdeapplicationtreelistwidget.cpp
index 2cef13b..3ad1d60 100644
--- a/src/kdeapplicationtreelistwidget.cpp
+++ b/src/kdeapplicationtreelistwidget.cpp
@@ -50,7 +50,7 @@ void KDEApplicationTreeListWidgetItem::setLogName(const QString &category)
mCategory = category;
}
-LoggingCategory KDEApplicationTreeListWidgetItem::rule()
+LoggingCategory KDEApplicationTreeListWidgetItem::rule() const
{
LoggingCategory cat;
cat.enabled = false;
@@ -111,7 +111,7 @@ void KDEApplicationTreeListWidget::insertCategories(const LoggingCategory::List
addListItems(list, false);
}
-LoggingCategory::List KDEApplicationTreeListWidget::rules()
+LoggingCategory::List KDEApplicationTreeListWidget::rules() const
{
LoggingCategory::List lst;
for (int i = 0; i < topLevelItemCount(); ++i) {
diff --git a/src/kdeapplicationtreelistwidget.h b/src/kdeapplicationtreelistwidget.h
index 7bafc8e..3121c05 100644
--- a/src/kdeapplicationtreelistwidget.h
+++ b/src/kdeapplicationtreelistwidget.h
@@ -39,7 +39,7 @@ public:
void setLogName(const QString &category);
void setType(LoggingCategory::LoggingType type);
- LoggingCategory rule();
+ LoggingCategory rule() const;
private:
QString mCategory;
CategoryTypeComboBox *mCategoryTypeCombobox = nullptr;
@@ -57,7 +57,7 @@ public:
void fillList(const LoggingCategory::List &list);
void insertCategories(const LoggingCategory::List &list);
- LoggingCategory::List rules();
+ LoggingCategory::List rules() const;
private:
void addListItems(const LoggingCategory::List &list, bool clearList);
};