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

List:       kde-commits
Subject:    [kregexpeditor] src: Use nullptr
From:       Montel Laurent <null () kde ! org>
Date:       2017-05-30 19:51:23
Message-ID: E1dFnAp-0002sP-2F () code ! kde ! org
[Download RAW message or body]

Git commit ee800509dc7f516577965b41c92f2944d796319f by Montel Laurent.
Committed on 30/05/2017 at 19:51.
Pushed by mlaurent into branch 'master'.

Use nullptr

M  +3    -3    src/errormap.cpp

https://commits.kde.org/kregexpeditor/ee800509dc7f516577965b41c92f2944d796319f

diff --git a/src/errormap.cpp b/src/errormap.cpp
index 3694b59..84ff29a 100644
--- a/src/errormap.cpp
+++ b/src/errormap.cpp
@@ -44,7 +44,7 @@ void ErrorMap::end()
 void ErrorMap::lineStartError()
 {
     if (!_prevLineStartError) {
-        KMessageBox::information(0, i18n("Your regular expression is invalid, due to \
something preceding a 'line start'."), +        KMessageBox::information(nullptr, \
i18n("Your regular expression is invalid, due to something preceding a 'line \
                start'."),
                                  i18n("Regular Expression Error"), \
QString::fromLatin1("KRegExpEditorLineStartError"));  }
     _lineStartError = true;
@@ -53,7 +53,7 @@ void ErrorMap::lineStartError()
 void ErrorMap::lineEndError()
 {
     if (!_prevLineEndError) {
-        KMessageBox::information(0, i18n("Your regular expression is invalid, due to \
something following a 'line end'."), +        KMessageBox::information(nullptr, \
                i18n("Your regular expression is invalid, due to something following \
                a 'line end'."),
                                  i18n("Regular Expression Error"), \
QString::fromLatin1("KRegExpEditorLineEndError"));  }
     _lineEndError = true;
@@ -62,7 +62,7 @@ void ErrorMap::lineEndError()
 void ErrorMap::lookAheadError()
 {
     if (!_prevLookAHeadError) {
-        KMessageBox::information(0, i18n("Your regular expression is invalid. 'Look \
Ahead' regular expression must be the last sub expression."), +        \
KMessageBox::information(nullptr, i18n("Your regular expression is invalid. 'Look \
                Ahead' regular expression must be the last sub expression."),
                                  i18n("Regular Expression Error"), \
QString::fromLatin1("KRegExpEditorLookAHeadError"));  }
     _lookAHeadError = true;


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

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