forked from qt-creator/qt-creator
Make them const.
This commit is contained in:
@@ -620,12 +620,12 @@ BookmarkManager::~BookmarkManager()
|
|||||||
listModel->clear();
|
listModel->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
BookmarkModel* BookmarkManager::treeBookmarkModel()
|
BookmarkModel* BookmarkManager::treeBookmarkModel() const
|
||||||
{
|
{
|
||||||
return treeModel;
|
return treeModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
BookmarkModel* BookmarkManager::listBookmarkModel()
|
BookmarkModel* BookmarkManager::listBookmarkModel() const
|
||||||
{
|
{
|
||||||
return listModel;
|
return listModel;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,8 +161,8 @@ public:
|
|||||||
BookmarkManager(QHelpEngineCore *helpEngine);
|
BookmarkManager(QHelpEngineCore *helpEngine);
|
||||||
~BookmarkManager();
|
~BookmarkManager();
|
||||||
|
|
||||||
BookmarkModel *treeBookmarkModel();
|
BookmarkModel *treeBookmarkModel() const;
|
||||||
BookmarkModel *listBookmarkModel();
|
BookmarkModel *listBookmarkModel() const;
|
||||||
|
|
||||||
void saveBookmarks();
|
void saveBookmarks();
|
||||||
QStringList bookmarkFolders() const;
|
QStringList bookmarkFolders() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user