[libcalamares] namespace A::B is a C++17 extension
This commit is contained in:
parent
7302b9c851
commit
2c94cbdb14
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,9 @@ handlerTypes()
|
||||
return names;
|
||||
}
|
||||
|
||||
namespace CalamaresUtils::GeoIP
|
||||
namespace CalamaresUtils
|
||||
{
|
||||
namespace GeoIP
|
||||
{
|
||||
|
||||
Handler::Handler()
|
||||
@ -179,5 +181,5 @@ Handler::queryRaw() const
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user