diff --git a/src/plugins/duieditor/rewriter/rewriter.cpp b/src/plugins/duieditor/rewriter/rewriter.cpp index 81f471fbb97ae2da043b0ab3b431ef62aba00bb5..89406a45211194b8b91e94ece42325a451491fe2 100644 --- a/src/plugins/duieditor/rewriter/rewriter.cpp +++ b/src/plugins/duieditor/rewriter/rewriter.cpp @@ -2,6 +2,7 @@ #include "parser/javascriptast_p.h" using namespace JavaScript; +using namespace DuiEditor::Internal; void Rewriter::replace(const AST::SourceLocation &loc, const QString &text) { replace(loc.offset, loc.length, text); } diff --git a/src/plugins/duieditor/rewriter/rewriter.h b/src/plugins/duieditor/rewriter/rewriter.h index 03d4731b336db333bec6571358d1bda62a9ab171..17ebe97c97cb199fe654dff2e952f058c00c9f2e 100644 --- a/src/plugins/duieditor/rewriter/rewriter.h +++ b/src/plugins/duieditor/rewriter/rewriter.h @@ -7,6 +7,9 @@ #include "textwriter.h" #include "parser/javascriptastvisitor_p.h" +namespace DuiEditor { +namespace Internal { + //////////////////////////////////////////////////////////////////////////////// // Replacement //////////////////////////////////////////////////////////////////////////////// @@ -97,4 +100,7 @@ private: QList<Replacement> _replacementList; }; +} // end of namespace Internal +} // end of namespace DuiEditor + #endif // REWRITER_H diff --git a/src/plugins/duieditor/rewriter/textwriter.cpp b/src/plugins/duieditor/rewriter/textwriter.cpp index cd61138bef73c5420ea9b7d364037bbfa722a1b1..bb4f6c44b0c66b1113b7779aa523da15c76e6037 100644 --- a/src/plugins/duieditor/rewriter/textwriter.cpp +++ b/src/plugins/duieditor/rewriter/textwriter.cpp @@ -1,5 +1,7 @@ #include "textwriter.h" +using namespace DuiEditor::Internal; + TextWriter::TextWriter() :string(0), cursor(0) { diff --git a/src/plugins/duieditor/rewriter/textwriter.h b/src/plugins/duieditor/rewriter/textwriter.h index dcd3a5f472b6e47d4ebe895c167f54f1609b98f4..38104a6b89ac43b7a11532b64e45cfc93641a3c3 100644 --- a/src/plugins/duieditor/rewriter/textwriter.h +++ b/src/plugins/duieditor/rewriter/textwriter.h @@ -5,6 +5,8 @@ #include <QList> #include <QTextCursor> +namespace DuiEditor { +namespace Internal { class TextWriter { @@ -46,4 +48,7 @@ public: }; +} // end of namespace Internal +} // end of namespace DuiEditor + #endif // TEXTWRITER_H