summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/times.cc b/src/times.cc
index b737b2a0..6afbab0a 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -789,8 +789,8 @@ std::string format_datetime(const datetime_t& when,
return printed_datetime_io->format(when);
}
else {
- assert(0);
- return "";
+ assert(false);
+ return empty_string;
}
}
@@ -815,8 +815,8 @@ std::string format_date(const date_t& when,
return printed_date_io->format(when);
}
else {
- assert(0);
- return "";
+ assert(false);
+ return empty_string;
}
}