summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-12-28 16:50:41 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-28 16:50:41 +0100
commitfaa7f72c417b4ccd9b794b32b988312186d62e59 (patch)
tree19a4db56f1526e073ce87a0c05a0923d5a6e442f /src/webtab
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-faa7f72c417b4ccd9b794b32b988312186d62e59.tar.xz
Krazy Fixes, first shot
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/networkaccessmanager.h2
-rw-r--r--src/webtab/protocolhandler.h2
-rw-r--r--src/webtab/walletbar.h2
-rw-r--r--src/webtab/webpluginfactory.h2
-rw-r--r--src/webtab/webview.cpp6
5 files changed, 7 insertions, 7 deletions
diff --git a/src/webtab/networkaccessmanager.h b/src/webtab/networkaccessmanager.h
index 1c9c3905..d839bdda 100644
--- a/src/webtab/networkaccessmanager.h
+++ b/src/webtab/networkaccessmanager.h
@@ -47,7 +47,7 @@ class REKONQ_TESTS_EXPORT NetworkAccessManager : public KIO::Integration::Access
Q_OBJECT
public:
- NetworkAccessManager(QObject *parent);
+ explicit NetworkAccessManager(QObject *parent);
protected:
virtual QNetworkReply *createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData = 0);
diff --git a/src/webtab/protocolhandler.h b/src/webtab/protocolhandler.h
index 83d2e81c..d5a6c0dd 100644
--- a/src/webtab/protocolhandler.h
+++ b/src/webtab/protocolhandler.h
@@ -51,7 +51,7 @@ class REKONQ_TESTS_EXPORT ProtocolHandler : public QObject
Q_OBJECT
public:
- ProtocolHandler(QObject *parent = 0);
+ explicit ProtocolHandler(QObject *parent = 0);
/**
* This function handles all the protocols that have to be handled before
diff --git a/src/webtab/walletbar.h b/src/webtab/walletbar.h
index f1bbd2cb..c5357fa2 100644
--- a/src/webtab/walletbar.h
+++ b/src/webtab/walletbar.h
@@ -44,7 +44,7 @@ class REKONQ_TESTS_EXPORT WalletBar : public KMessageWidget
Q_OBJECT
public:
- WalletBar(QWidget *parent);
+ explicit WalletBar(QWidget *parent);
private Q_SLOTS:
void rememberData();
diff --git a/src/webtab/webpluginfactory.h b/src/webtab/webpluginfactory.h
index 82bf02ce..0a0e6749 100644
--- a/src/webtab/webpluginfactory.h
+++ b/src/webtab/webpluginfactory.h
@@ -41,7 +41,7 @@ class REKONQ_TESTS_EXPORT WebPluginFactory : public KWebPluginFactory
Q_OBJECT
public:
- WebPluginFactory(QObject *parent);
+ explicit WebPluginFactory(QObject *parent);
virtual QObject *create(const QString &_mimeType,
const QUrl &url,
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index c49002d6..986f8484 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -251,12 +251,12 @@ bool WebView::popupSpellMenu(QContextMenuEvent *event)
script += QString::number(s1);
script += QL1S(") + \"");
script += w;
- script += QL1S("\" + this.value.substring(");
+ script += QL1C('\\') + QL1S("this.value.substring(");
script += QString::number(s2);
- script += QL1S(")");
+ script += QL1C(')');
element.evaluateJavaScript(script);
// reposition cursor
- element.evaluateJavaScript("this.selectionEnd=this.selectionStart=" + QString::number(selStart) + ";");
+ element.evaluateJavaScript("this.selectionEnd=this.selectionStart=" + QString::number(selStart) + QL1C(';'));
}
}
}