Make single argument ctor explicit
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Sat, 18 Jan 2014 01:33:18 +0000 (02:33 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 18 Jan 2014 09:29:47 +0000 (10:29 +0100)
Change-Id: Idf4933cb9caa0e33ee72948390d2b6d98c241fc5
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocketcorsauthenticator.h

index 8816039..9816deb 100644 (file)
@@ -53,9 +53,9 @@ class Q_WEBSOCKETS_EXPORT QWebSocketCorsAuthenticator
     Q_DECLARE_PRIVATE(QWebSocketCorsAuthenticator)
 
 public:
-    QWebSocketCorsAuthenticator(const QString &origin);
+    explicit QWebSocketCorsAuthenticator(const QString &origin);
     ~QWebSocketCorsAuthenticator();
-    QWebSocketCorsAuthenticator(const QWebSocketCorsAuthenticator &other);
+    explicit QWebSocketCorsAuthenticator(const QWebSocketCorsAuthenticator &other);
 
 #ifdef Q_COMPILER_RVALUE_REFS
     QWebSocketCorsAuthenticator(QWebSocketCorsAuthenticator &&other);