[libcalamares] namespace A::B is a C++17 extension

This commit is contained in:
Adriaan de Groot 2019-05-13 12:25:14 +02:00
parent 7302b9c851
commit 2c94cbdb14
7 changed files with 28 additions and 12 deletions

View File

@ -25,7 +25,9 @@
#include <QByteArray> #include <QByteArray>
namespace CalamaresUtils::GeoIP namespace CalamaresUtils
{
namespace GeoIP
{ {
GeoIPJSON::GeoIPJSON(const QString& attribute) GeoIPJSON::GeoIPJSON(const QString& attribute)
@ -88,6 +90,5 @@ GeoIPJSON::processReply( const QByteArray& data )
return splitTZString( rawReply( data ) ); return splitTZString( rawReply( data ) );
} }
}
} // namespace } // namespace

View File

@ -21,7 +21,9 @@
#include "Interface.h" #include "Interface.h"
namespace CalamaresUtils::GeoIP namespace CalamaresUtils
{
namespace GeoIP
{ {
/** @brief GeoIP lookup for services that return JSON. /** @brief GeoIP lookup for services that return JSON.
* *
@ -46,5 +48,6 @@ public:
virtual QString rawReply(const QByteArray & ) override; virtual QString rawReply(const QByteArray & ) override;
} ; } ;
}
} // namespace } // namespace
#endif #endif

View File

@ -21,7 +21,9 @@
#include "Interface.h" #include "Interface.h"
namespace CalamaresUtils::GeoIP namespace CalamaresUtils
{
namespace GeoIP
{ {
/** @brief GeoIP lookup with XML data /** @brief GeoIP lookup with XML data
* *
@ -46,5 +48,6 @@ public:
virtual QString rawReply(const QByteArray & ) override; virtual QString rawReply(const QByteArray & ) override;
} ; } ;
}
} // namespace } // namespace
#endif #endif

View File

@ -47,7 +47,9 @@ handlerTypes()
return names; return names;
} }
namespace CalamaresUtils::GeoIP namespace CalamaresUtils
{
namespace GeoIP
{ {
Handler::Handler() Handler::Handler()
@ -179,5 +181,5 @@ Handler::queryRaw() const
} ); } );
} }
}
} // namespace } // namespace

View File

@ -25,8 +25,9 @@
#include <QString> #include <QString>
#include <QVariantMap> #include <QVariantMap>
namespace CalamaresUtils {} namespace CalamaresUtils
namespace CalamaresUtils::GeoIP {
namespace GeoIP
{ {
/** @brief Handle one complete GeoIP lookup. /** @brief Handle one complete GeoIP lookup.
@ -86,6 +87,7 @@ private:
const QString m_selector; const QString m_selector;
}; };
}
} // namespace } // namespace
#endif #endif

View File

@ -20,7 +20,9 @@
#include "utils/Logger.h" #include "utils/Logger.h"
namespace CalamaresUtils::GeoIP namespace CalamaresUtils
{
namespace GeoIP
{ {
Interface::Interface(const QString& e) Interface::Interface(const QString& e)
@ -51,4 +53,5 @@ splitTZString( const QString& tz )
return RegionZonePair( QString(), QString() ); return RegionZonePair( QString(), QString() );
} }
}
} // namespace } // namespace

View File

@ -27,8 +27,9 @@
class QByteArray; class QByteArray;
namespace CalamaresUtils {} namespace CalamaresUtils
namespace CalamaresUtils::GeoIP {
namespace GeoIP
{ {
/** @brief A Region, Zone pair of strings /** @brief A Region, Zone pair of strings
* *
@ -94,5 +95,6 @@ protected:
QString m_element; // string for selecting from data QString m_element; // string for selecting from data
} ; } ;
}
} // namespace } // namespace
#endif #endif