Sfoglia il codice sorgente

cleaned up namespace in GBUdb

master
Pete McNeil 4 anni fa
parent
commit
67edccbf69
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      GBUdb.cpp

+ 3
- 3
GBUdb.cpp Vedi File

@@ -11,7 +11,7 @@
#include <unistd.h>
#include "GBUdb.hpp"

using namespace std;
namespace cd = codedweller;

//// Handy utilities...

@@ -334,7 +334,7 @@ void GBUdbDataset::save() {
}
}

const RuntimeCheck SaneFileSizeCheck("GBUdbDataset::load():SaneFileSizeCheck(SaneGBUdbFileSizeLimit <= FileSize)");
const cd::RuntimeCheck SaneFileSizeCheck("GBUdbDataset::load():SaneFileSizeCheck(SaneGBUdbFileSizeLimit <= FileSize)");

void GBUdbDataset::load() { // Read the GBUdb from disk.

@@ -509,7 +509,7 @@ bool AlertFor(int count) {
);
}

RuntimeCheck GoodTimestampLength("GBUdb.cpp:getTimestamp snprintf(...) == CorrectTimestampLength");
cd::RuntimeCheck GoodTimestampLength("GBUdb.cpp:getTimestamp snprintf(...) == CorrectTimestampLength");
char* getTimestamp(char* TimestampBfr) { // Creates an ISO GMT timestamp.

time_t rawtime; // Get a timer and

Loading…
Annulla
Salva