Fix Xcode project after recent refactoring.

This commit is contained in:
Stephen Anthony 2023-01-06 11:38:34 -03:30
parent 265a090cc1
commit 6ba428ff37
2 changed files with 5 additions and 5 deletions

View File

@ -23,9 +23,9 @@
class SettingsRepositoryMACOS : public KeyValueRepository class SettingsRepositoryMACOS : public KeyValueRepository
{ {
public: public:
std::map<string, Variant> load() override; KVRMap load() override;
bool save(const std::map<string, Variant>& values) override; bool save(const KVRMap& values) override;
}; };
#endif // SETTINGS_REPOSITORY_MACOS_HXX #endif // SETTINGS_REPOSITORY_MACOS_HXX

View File

@ -20,9 +20,9 @@
#include "SettingsRepositoryMACOS.hxx" #include "SettingsRepositoryMACOS.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
std::map<string, Variant> SettingsRepositoryMACOS::load() KVRMap SettingsRepositoryMACOS::load()
{ {
std::map<string, Variant> values; KVRMap values;
@autoreleasepool { @autoreleasepool {
NSString* bundleId = [[NSBundle mainBundle] bundleIdentifier]; NSString* bundleId = [[NSBundle mainBundle] bundleIdentifier];
@ -40,7 +40,7 @@ std::map<string, Variant> SettingsRepositoryMACOS::load()
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool SettingsRepositoryMACOS::save(const std::map<string, Variant>& values) bool SettingsRepositoryMACOS::save(const KVRMap& values)
{ {
@autoreleasepool { @autoreleasepool {
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];