aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-06 19:18:39 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-06 19:18:39 -0700
commit718abaae0ef465050c81c0dfba63ce9f0fff17fc (patch)
tree1fb9f2f5e643819b443da03e47a40fdfde8ba9a5
parent62a402d05aa2b4722201506794fd20e95b05845c (diff)
downloadPrismLauncher-718abaae0ef465050c81c0dfba63ce9f0fff17fc.tar.gz
PrismLauncher-718abaae0ef465050c81c0dfba63ce9f0fff17fc.tar.bz2
PrismLauncher-718abaae0ef465050c81c0dfba63ce9f0fff17fc.zip
doc fixes
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-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;