aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-01 16:28:47 +0000
committerGravatar Sadie Powell2025-03-01 16:28:47 +0000
commit70716c5c0db9562f5063f2fe09b70cc6b0124aaf (patch)
treebab2b022b3f4458887029f36878c22261c5526a3 /src/helperfuncs.cpp
parentAvoid the use of ConvToStr in string concatenation. (diff)
Splat some unfinished code that made it into the previous commit.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index c81a9fa0f..eaacee665 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -403,7 +403,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;
@@ -437,7 +437,7 @@ 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);