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

List:       kde-commits
Subject:    [kdevelop/5.3] /: Remove "using namespace KDevelop; " from installed header
From:       Friedrich W. H. Kossebau <null () kde ! org>
Date:       2018-08-30 21:20:57
Message-ID: E1fvUN7-00078y-SI () code ! kde ! org
[Download RAW message or body]

Git commit 56010faaf45ddbe381348502a97752b86c09ddc9 by Friedrich W. H. Koss=
ebau.
Committed on 30/08/2018 at 20:58.
Pushed by kossebau into branch '5.3'.

Remove "using namespace KDevelop;" from installed header

M  +0    -2    kdevplatform/language/duchain/functiondefinition.h
M  +2    -0    plugins/clang/codecompletion/completionhelper.cpp
M  +2    -0    plugins/clang/duchain/builder.cpp
M  +2    -0    plugins/cmake/testing/ctestsuite.cpp
M  +1    -0    plugins/contextbrowser/contextbrowser.cpp

https://commits.kde.org/kdevelop/56010faaf45ddbe381348502a97752b86c09ddc9

diff --git a/kdevplatform/language/duchain/functiondefinition.h b/kdevplatf=
orm/language/duchain/functiondefinition.h
index 193593cd89..b82ecc1378 100644
--- a/kdevplatform/language/duchain/functiondefinition.h
+++ b/kdevplatform/language/duchain/functiondefinition.h
@@ -21,8 +21,6 @@
 #include "functiondeclaration.h"
 #include <language/languageexport.h>
 =

-using namespace KDevelop;
-
 namespace KDevelop {
   class KDEVPLATFORMLANGUAGE_EXPORT FunctionDefinitionData : public Functi=
onDeclarationData {
   public:
diff --git a/plugins/clang/codecompletion/completionhelper.cpp b/plugins/cl=
ang/codecompletion/completionhelper.cpp
index d23048d038..2b5d4f11c3 100644
--- a/plugins/clang/codecompletion/completionhelper.cpp
+++ b/plugins/clang/codecompletion/completionhelper.cpp
@@ -35,6 +35,8 @@
 =

 #include <algorithm>
 =

+using namespace KDevelop;
+
 namespace {
 =

 struct OverrideInfo
diff --git a/plugins/clang/duchain/builder.cpp b/plugins/clang/duchain/buil=
der.cpp
index dccebeae2b..d173c33e6c 100644
--- a/plugins/clang/duchain/builder.cpp
+++ b/plugins/clang/duchain/builder.cpp
@@ -59,6 +59,8 @@
 /// Turn on for debugging the declaration building
 #define IF_DEBUG(x)
 =

+using namespace KDevelop;
+
 namespace {
 =

 // TODO: this is ugly, can we find a better alternative?
diff --git a/plugins/cmake/testing/ctestsuite.cpp b/plugins/cmake/testing/c=
testsuite.cpp
index f18aec2679..529e500406 100644
--- a/plugins/cmake/testing/ctestsuite.cpp
+++ b/plugins/cmake/testing/ctestsuite.cpp
@@ -35,6 +35,8 @@
 #include <language/duchain/types/structuretype.h>
 #include <project/projectmodel.h>
 =

+using namespace KDevelop;
+
 Declaration* findTestClassDeclaration(const CursorInRevision& c, DUContext=
* ctx, RangeInRevision::ContainsBehavior behavior)
 {
     /*
diff --git a/plugins/contextbrowser/contextbrowser.cpp b/plugins/contextbro=
wser/contextbrowser.cpp
index f602b3baef..ef1967e45a 100644
--- a/plugins/contextbrowser/contextbrowser.cpp
+++ b/plugins/contextbrowser/contextbrowser.cpp
@@ -83,6 +83,7 @@
 =

 using KTextEditor::Attribute;
 using KTextEditor::View;
+using namespace KDevelop;
 =

 // Helper that follows the QObject::parent() chain, and returns the highes=
t widget that has no parent.
 QWidget* masterWidget(QWidget* w)

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

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