OSDN Git Service

inline some methods
authorIvailo Monev <xakepa10@gmail.com>
Sun, 7 Feb 2016 13:43:21 +0000 (15:43 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 7 Feb 2016 13:43:21 +0000 (15:43 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/declarative/qml/parser/qdeclarativejslexer_p.h
src/gui/dialogs/qfileinfogatherer_p.h
src/gui/inputmethod/qwsinputcontext_p.h

index b165e41..0a5beb5 100644 (file)
@@ -82,7 +82,7 @@ public:
     int startLineNo() const { return startlineno; }
     int startColumnNo() const { return startcolumn; }
 
-    int endLineNo() const { return currentLineNo(); }
+    inline int endLineNo() const { return currentLineNo(); }
     int endColumnNo() const
     { int col = currentColumnNo(); return (col > 0) ? col - 1 : col; }
 
index 169bf82..5c3a19e 100644 (file)
@@ -110,11 +110,13 @@ public:
 
     bool isSymLink(bool ignoreNtfsSymLinks = false) const
     {
-        if (ignoreNtfsSymLinks) {
 #ifdef Q_WS_WIN
+        if (ignoreNtfsSymLinks) {
             return !mFileInfo.suffix().compare(QLatin1String("lnk"), Qt::CaseInsensitive);
-#endif
         }
+#else
+        Q_UNUSED(ignoreNtfsSymLinks);
+#endif
         return mFileInfo.isSymLink();
     }
 
index 5cd135c..c59b9c7 100644 (file)
@@ -71,8 +71,8 @@ public:
     ~QWSInputContext() {}
 
 
-    QString identifierName() { return QString(); }
-    QString language() { return QString(); }
+    inline QString identifierName() { return QString(); }
+    inline QString language() { return QString(); }
 
     void reset();
     void update();