Mercurial > hg > orthanc
diff OrthancServer/DatabaseWrapper.cpp @ 1239:92c6b3b57699
cleaning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Dec 2014 16:22:18 +0100 |
parents | 6c07108ff1e2 |
children | 62c35e4b67db |
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp Fri Dec 05 16:14:57 2014 +0100 +++ b/OrthancServer/DatabaseWrapper.cpp Fri Dec 05 16:22:18 2014 +0100 @@ -213,20 +213,6 @@ } } - std::string DatabaseWrapper::GetGlobalProperty(GlobalProperty property, - const std::string& defaultValue) - { - std::string s; - if (LookupGlobalProperty(s, property)) - { - return s; - } - else - { - return defaultValue; - } - } - int64_t DatabaseWrapper::CreateResource(const std::string& publicId, ResourceType type) { @@ -874,7 +860,12 @@ } // Check the version of the database - std::string version = GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "Unknown"); + std::string version; + if (!LookupGlobalProperty(version, GlobalProperty_DatabaseSchemaVersion)) + { + version = "Unknown"; + } + bool ok = false; try {