aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-27 11:01:30 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-27 11:01:30 -0500
commitb0936139bfef6fe169b5c17be4b2dafa3c2e2c3a (patch)
treee4c9149fc11dca4d607066053258884dba0efec1 /src/snap.cpp
parent7271b2139a5c600a2c3cdb4e552e05ddb0f374dd (diff)
downloadayatana-indicator-datetime-b0936139bfef6fe169b5c17be4b2dafa3c2e2c3a.tar.gz
ayatana-indicator-datetime-b0936139bfef6fe169b5c17be4b2dafa3c2e2c3a.tar.bz2
ayatana-indicator-datetime-b0936139bfef6fe169b5c17be4b2dafa3c2e2c3a.zip
copyediting: comments, use anonymous namespace
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index d99e5ef..e9df256 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -39,8 +39,11 @@ namespace datetime {
****
***/
-static std::string get_alarm_uri(const Appointment& appointment,
- const std::shared_ptr<const Settings>& settings)
+namespace // unnamed namespace
+{
+
+std::string get_alarm_uri(const Appointment& appointment,
+ const std::shared_ptr<const Settings>& settings)
{
const char* FALLBACK {"/usr/share/sounds/ubuntu/ringtones/Suru arpeggio.ogg"};
@@ -72,6 +75,8 @@ static std::string get_alarm_uri(const Appointment& appointment,
return uri;
}
+} // unnamed namespace
+
/***
****
***/
@@ -102,7 +107,7 @@ void Snap::operator()(const Appointment& appointment,
// force the system to stay awake
auto awake = std::make_shared<uin::Awake>(m_engine->app_name());
- // create the sound...,
+ // create the sound...
const auto uri = get_alarm_uri(appointment, m_settings);
const auto volume = m_settings->alarm_volume.get();
const bool loop = m_engine->supports_actions();