summaryrefslogtreecommitdiffstats
path: root/src/qtpass.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2018-10-11 13:57:19 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2018-10-11 13:57:19 +0200
commit6315d1e9371864f0ed6b3854a4b50561b062befe (patch)
tree757628b1e101e182cd63b3e2c6d475ad7a1000d3 /src/qtpass.cpp
parent5f7046e495db863f17d42f61c5feb9d405055a13 (diff)
Some cleanup with help of Clang-Tidy and Clazy (part 1 of x)
Diffstat (limited to 'src/qtpass.cpp')
-rw-r--r--src/qtpass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qtpass.cpp b/src/qtpass.cpp
index 2239e86d..fda99cad 100644
--- a/src/qtpass.cpp
+++ b/src/qtpass.cpp
@@ -23,6 +23,7 @@ QtPass::QtPass() : clippedText(QString()), freshStart(true) {
if (!setup()) {
// no working config so this should quit without config anything
QApplication::quit();
+ {}
}
setClipboardTimer();
@@ -273,7 +274,7 @@ void QtPass::processErrorExit(int exitCode, const QString &p_error) {
output.replace(
QRegExp("((?:https?|ftp|ssh|sftp|ftps|webdav|webdavs)://\\S+)"),
- "<a href=\"\\1\">\\1</a>");
+ R"(<a href="\1">\1</a>)");
output.replace(QRegExp("\n"), "<br />");
m_mainWindow->flashText(output, false, true);
@@ -335,7 +336,7 @@ void QtPass::showInTextBrowser(QString output, QString prefix,
output.replace(
QRegExp("((?:https?|ftp|ssh|sftp|ftps|webdav|webdavs)://\\S+)"),
- "<a href=\"\\1\">\\1</a>");
+ R"(<a href="\1">\1</a>)");
output.replace(QRegExp("\n"), "<br />");
output = prefix + output + postfix;