aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/locations-settings.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-30 13:44:12 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-30 13:44:12 -0600
commit197309468247c893bdaa37ef47a98db695b2ea78 (patch)
treee95bd0460940252fc3cc2ff66d88394157e5720f /include/datetime/locations-settings.h
parent0f384f4c9607b785d7df4da8566fe2b869ef11e4 (diff)
downloadayatana-indicator-datetime-197309468247c893bdaa37ef47a98db695b2ea78.tar.gz
ayatana-indicator-datetime-197309468247c893bdaa37ef47a98db695b2ea78.tar.bz2
ayatana-indicator-datetime-197309468247c893bdaa37ef47a98db695b2ea78.zip
following on the review comment covered in the last commit, use shared_ptr<const X> instead of shared_ptr<X> where possible.
Diffstat (limited to 'include/datetime/locations-settings.h')
-rw-r--r--include/datetime/locations-settings.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/datetime/locations-settings.h b/include/datetime/locations-settings.h
index d01cbb5..8757f43 100644
--- a/include/datetime/locations-settings.h
+++ b/include/datetime/locations-settings.h
@@ -39,12 +39,12 @@ public:
* @param[in] settings the #Settings whose locations property is to be used
* @param[in] timezones the #Timezones to always show first in the list
*/
- SettingsLocations (const std::shared_ptr<Settings>& settings,
- const std::shared_ptr<Timezones>& timezones);
+ SettingsLocations (const std::shared_ptr<const Settings>& settings,
+ const std::shared_ptr<const Timezones>& timezones);
private:
- std::shared_ptr<Settings> m_settings;
- std::shared_ptr<Timezones> m_timezones;
+ std::shared_ptr<const Settings> m_settings;
+ std::shared_ptr<const Timezones> m_timezones;
void reload();
};