From: APTX Date: Tue, 19 Mar 2013 19:57:30 +0000 (+0100) Subject: Add namespace X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=746f97fdb9f8bfbf456ceeb2d4ac620c2066ef63;p=localmylist.git Add namespace --- diff --git a/localmylist/sqlquery.cpp b/localmylist/sqlquery.cpp index e1dee1a..82868a8 100644 --- a/localmylist/sqlquery.cpp +++ b/localmylist/sqlquery.cpp @@ -3,6 +3,8 @@ #include #include +namespace LocalMyList { + class SqlQueryInternal { public: @@ -85,7 +87,7 @@ QString SqlQueryInternal::lastError() const // ------------------------------- SqlQuery::SqlQuery(QObject *parent) : - QObject(parent) + QObject(parent), d(new SqlQueryInternal) { } @@ -143,3 +145,5 @@ QString SqlQuery::lastError() const { return d->lastError(); } + +} // namespace LocalMyList diff --git a/localmylist/sqlquery.h b/localmylist/sqlquery.h index 15a86c3..c11cc24 100644 --- a/localmylist/sqlquery.h +++ b/localmylist/sqlquery.h @@ -1,12 +1,15 @@ #ifndef SQLQUERY_H #define SQLQUERY_H +#include "localmylist_global.h" #include #include +namespace LocalMyList { + class SqlQueryInternal; -class SqlQuery : public QObject +class LOCALMYLISTSHARED_EXPORT SqlQuery : public QObject { Q_OBJECT public: @@ -33,4 +36,6 @@ public slots: SqlQueryInternal *d; }; +} // namespace LocalMyList + #endif // SQLQUERY_H