diff options
author | Naios <naios-dev@live.de> | 2015-04-04 23:59:28 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2015-04-05 00:25:20 +0200 |
commit | 455eee9392ac5fd170bae7a1c1e1229e0881ba07 (patch) | |
tree | 28215dfc6fa8ee196a91f0ca0811ade10279418d /src/server/shared/Updater/UpdateFetcher.h | |
parent | 2b6c0865769b8b8166d6afa36dd55cdb6cf98f45 (diff) |
Core/DBUpdater: Exit clean if a query failed to apply.
* Fix some \W4 warnings about constructors.
(cherry picked from commit de490674ff1205d908301b94f5644247562b43cb)
Diffstat (limited to 'src/server/shared/Updater/UpdateFetcher.h')
-rw-r--r-- | src/server/shared/Updater/UpdateFetcher.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/shared/Updater/UpdateFetcher.h b/src/server/shared/Updater/UpdateFetcher.h index fa142547873..e9eacff1547 100644 --- a/src/server/shared/Updater/UpdateFetcher.h +++ b/src/server/shared/Updater/UpdateFetcher.h @@ -64,6 +64,9 @@ private: uint64 const timestamp; + AppliedFileEntry(std::string const& _name, std::string const& _hash, State const _state, uint64 const _timestamp) : + name(_name), hash(_hash), state(_state), timestamp(_timestamp) { } + static inline State StateConvert(std::string const& state) { return (state == "RELEASED") ? RELEASED : ARCHIVED; @@ -87,6 +90,9 @@ private: Path const path; State const state; + + DirectoryEntry(Path const& _path, State const _state) : + path(_path), state(_state) { } }; typedef std::pair<Path, State> LocaleFileEntry; |