aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launcher/MMCTime.h4
-rw-r--r--launcher/StringUtils.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/launcher/MMCTime.h b/launcher/MMCTime.h
index 576b837f..6a5780b4 100644
--- a/launcher/MMCTime.h
+++ b/launcher/MMCTime.h
@@ -23,8 +23,8 @@ namespace Time {
QString prettifyDuration(int64_t duration);
/**
- * @brief Returns a string with short form time duration ie. `2days 1h3m4s56.0ms`
- * miliseconds are only included if `percison` is greater than 0
+ * @brief Returns a string with short form time duration ie. `2days 1h3m4s56.0ms`.
+ * miliseconds are only included if `precision` is greater than 0.
*
* @param duration a number of seconds as floating point
* @param precision number of decmial points to display on fractons of a second, defualts to 0.
diff --git a/launcher/StringUtils.cpp b/launcher/StringUtils.cpp
index f677ebf6..5d9e32b6 100644
--- a/launcher/StringUtils.cpp
+++ b/launcher/StringUtils.cpp
@@ -78,7 +78,6 @@ int StringUtils::naturalCompare(const QString& s1, const QString& s2, Qt::CaseSe
return QString::compare(s1, s2, cs);
}
-/// Truncate a url while keeping its readability py placing the `...` in the middle of the path
QString StringUtils::truncateUrlHumanFriendly(QUrl &url, int max_len, bool hard_limit)
{
auto display_options = QUrl::RemoveUserInfo | QUrl::RemoveFragment | QUrl::NormalizePathSegments;