aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-25 09:56:16 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-25 09:56:16 -0600
commitd8dcf6f405334a8438f732ae3e3ae970b54109a2 (patch)
treeed94e4501e5c6fbd57cc6d43e940b582736c2a1c
parente3ce38f4690f01968fb9cc5da5aa606fe9fcc499 (diff)
downloadayatana-indicator-datetime-d8dcf6f405334a8438f732ae3e3ae970b54109a2.tar.gz
ayatana-indicator-datetime-d8dcf6f405334a8438f732ae3e3ae970b54109a2.tar.bz2
ayatana-indicator-datetime-d8dcf6f405334a8438f732ae3e3ae970b54109a2.zip
don't pass a nulllptr into std::string's ctor if the EClient doesn't have a color hint.
-rw-r--r--src/planner-eds.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp
index 7d9416c..61719ea 100644
--- a/src/planner-eds.cpp
+++ b/src/planner-eds.cpp
@@ -289,7 +289,11 @@ private:
ECalClient* client;
std::string color;
AppointmentSubtask(const std::shared_ptr<Task>& task_in, ECalClient* client_in, const char* color_in):
- task(task_in), client(client_in), color(color_in) {}
+ task(task_in), client(client_in)
+ {
+ if (color_in)
+ color = color_in;
+ }
};
void rebuild_soon(int rebuild_flags)