[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>
namespace CalamaresUtils::GeoIP
namespace CalamaresUtils
{
namespace GeoIP
{
GeoIPJSON::GeoIPJSON(const QString& attribute)
@ -88,6 +90,5 @@ GeoIPJSON::processReply( const QByteArray& data )
return splitTZString( rawReply( data ) );
}
}
} // namespace

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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