aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 48feb9b75..c34a70669 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -397,7 +397,7 @@ static constexpr unsigned int duration_multi[] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
-bool Duration::TryFrom(const std::string& str, unsigned long& duration, time_t base)
+bool Duration::TryFrom(const std::string& str, unsigned long& duration)
{
unsigned long total = 0;
unsigned long subtotal = 0;
@@ -431,10 +431,10 @@ bool Duration::TryFrom(const std::string& str, unsigned long& duration, time_t b
return true;
}
-unsigned long Duration::From(const std::string& str, time_t base)
+unsigned long Duration::From(const std::string& str)
{
unsigned long out = 0;
- Duration::TryFrom(str, out, base);
+ Duration::TryFrom(str, out);
return out;
}