summaryrefslogtreecommitdiff
path: root/src/plugins/find/searchresultwidget.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-03-19 18:27:04 +0100
committerhjk <hjk121@nokiamail.com>2013-04-04 16:47:59 +0200
commitfe29d6a8a31efe4857e4cfbc876da52c179eee89 (patch)
tree420250c0765edd8dcb58d7b707e738c81606f1c8 /src/plugins/find/searchresultwidget.cpp
parent52575f1c62e97efd934c394d29c636cf80250674 (diff)
downloadqt-creator-fe29d6a8a31efe4857e4cfbc876da52c179eee89.tar.gz
Core: Remove Core::Id(QByteArray) constructor
This was mostly used to disambiguate the char * and the QString constructors. Change-Id: Ib6923ef8e8c0e5d514a883e73aa001a1cd9fb534 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/find/searchresultwidget.cpp')
-rw-r--r--src/plugins/find/searchresultwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/find/searchresultwidget.cpp b/src/plugins/find/searchresultwidget.cpp
index b83dd46716..e38aed622a 100644
--- a/src/plugins/find/searchresultwidget.cpp
+++ b/src/plugins/find/searchresultwidget.cpp
@@ -48,7 +48,6 @@
#include <QHBoxLayout>
static const int SEARCHRESULT_WARNING_LIMIT = 200000;
-static const char UNDO_WARNING_ID[] = "warninglabel";
static const char SIZE_WARNING_ID[] = "sizeWarningLabel";
namespace Find {
@@ -232,7 +231,7 @@ void SearchResultWidget::addResults(const QList<SearchResultItem> &items, Search
updateMatchesFoundLabel();
if (firstItems) {
if (!m_dontAskAgainGroup.isEmpty()) {
- Core::Id undoWarningId(QByteArray(UNDO_WARNING_ID) + '/' + m_dontAskAgainGroup.toLatin1());
+ Core::Id undoWarningId = Core::Id("warninglabel/").withSuffix(m_dontAskAgainGroup);
if (m_infoBar.canInfoBeAdded(undoWarningId)) {
Core::InfoBarEntry info(undoWarningId, tr("This change cannot be undone."),
Core::InfoBarEntry::GlobalSuppressionEnabled);