Commit 1fc179e6 authored by thillux's avatar thillux
Browse files

clang format

parent a52947e6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -42,7 +42,8 @@ InternetUsageStatistics::InternetUsageStatistics(std::string dbPath) {
        BOOST_LOG_TRIVIAL(error) << "Database connection failed in InternetUsageStatistics!";
    }
    assert(retval == SQLITE_OK);
    BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in InternetUsageStatistics!";
    BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath
                            << " successfully established in InternetUsageStatistics!";

    std::string queryString(
        " SELECT value FROM unbroadbandstats as un,"
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ class LandingPointReader : public SQLiteReader, public ResultIterator<SeaCableLa
    SeaCableLandingPoint getNext();

   private:

    std::string getContinentLandingPoint(std::string name);
};

+4 −7
Original line number Diff line number Diff line
@@ -4,9 +4,7 @@
template <class Result>
class ResultIterator {
   public:
    bool hasNext() {
        return _rowAvailable;
    }
    bool hasNext() { return _rowAvailable; }

    virtual Result getNext() = 0;

@@ -15,4 +13,3 @@ protected:
};

#endif  // RESULTITERATOR_HPP
+2 −1
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@ SQLiteAreaPopulationReader::SQLiteAreaPopulationReader(std::string dbPath, doubl
        BOOST_LOG_TRIVIAL(error) << "Database connection failed in SQLiteAreaPopulationReader";
    }
    assert(retval == SQLITE_OK);
    BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteAreaPopulationReader!";
    BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath
                            << " successfully established in SQLiteAreaPopulationReader!";

    std::string queryString(
        " SELECT geo.Latitude AS Latitude,"
+2 −1
Original line number Diff line number Diff line
@@ -42,7 +42,8 @@ SQLiteLocationReader::SQLiteLocationReader(std::string dbPath, int populationThr
    if (retval) {
        BOOST_LOG_TRIVIAL(error) << "Database connection failed for SQLiteLocationReader";
    }
    BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteLocationReader!";
    BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath
                            << " successfully established in SQLiteLocationReader!";

    std::string queryString(
        " SELECT geo.Name AS Name,"
Loading