X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSettings.cc;h=624179ce36998c16efed54b1b75414f97c7d28b7;hp=ad9c3b0fdebbb9b9eaf14a4ae5d752cad1acb278;hb=fdfba4553433b9b2804c2772c7645211b828c2ea;hpb=5fa5f117f28922a7e539a432367960c1a61f837d diff --git a/src/Moof/Settings.cc b/src/Moof/Settings.cc index ad9c3b0..624179c 100644 --- a/src/Moof/Settings.cc +++ b/src/Moof/Settings.cc @@ -69,14 +69,14 @@ void Settings::parseArgs(int argc, char* argv[]) try { - SerializablePtr value(deserializer.deserialize()); + SerializableP value(deserializer.deserialize()); map_[key] = value; } catch (std::exception e) { // it doesn't deserialize to anything we know, so just store it // as a string - map_[key] = SerializablePtr(new SerializableString(stringValue)); + map_[key] = SerializableP(new SerializableBasic(stringValue)); } } } @@ -111,8 +111,8 @@ void Settings::loadFromFiles(const std::vector& filePaths, { Deserializer deserializer(*it, true); - SerializablePtr obj = deserializer.deserialize(); - std::map map; + SerializableP obj = deserializer.deserialize(); + Serializable::Map map; if (obj && obj->get(map)) {