summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/Library.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-06-28 23:18:45 +0200
committerPetr Mrázek <peterix@gmail.com>2018-06-28 23:18:45 +0200
commit7fe94ca7b4aa191b1e79331b16724b7e9cc9f56e (patch)
tree59d922b5c35a70542355ae26f6a2dc442afa5307 /api/logic/minecraft/Library.cpp
parentb5f636b3d57a63f634c4efe5a4ccd9a91f53df04 (diff)
downloadMultiMC-7fe94ca7b4aa191b1e79331b16724b7e9cc9f56e.tar
MultiMC-7fe94ca7b4aa191b1e79331b16724b7e9cc9f56e.tar.gz
MultiMC-7fe94ca7b4aa191b1e79331b16724b7e9cc9f56e.tar.lz
MultiMC-7fe94ca7b4aa191b1e79331b16724b7e9cc9f56e.tar.xz
MultiMC-7fe94ca7b4aa191b1e79331b16724b7e9cc9f56e.zip
NOISSUE fix all sorts of warnings, enable `Werror` and `pedantic`
Diffstat (limited to 'api/logic/minecraft/Library.cpp')
-rw-r--r--api/logic/minecraft/Library.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/logic/minecraft/Library.cpp b/api/logic/minecraft/Library.cpp
index cd1afde4..237edaf1 100644
--- a/api/logic/minecraft/Library.cpp
+++ b/api/logic/minecraft/Library.cpp
@@ -59,7 +59,7 @@ QList< std::shared_ptr< NetAction > > Library::getDownloads(OpSys system, class
bool local = isLocal();
bool isForge = (hint() == "forge-pack-xz");
- auto add_download = [&](QString storage, QString url, QString sha1 = QString())
+ auto add_download = [&](QString storage, QString url, QString sha1)
{
auto entry = cache->resolveEntry("libraries", storage);
if(isAlwaysStale)
@@ -208,14 +208,14 @@ QList< std::shared_ptr< NetAction > > Library::getDownloads(OpSys system, class
{
QString cooked_storage = raw_storage;
QString cooked_dl = raw_dl;
- add_download(cooked_storage.replace("${arch}", "32"), cooked_dl.replace("${arch}", "32"));
+ add_download(cooked_storage.replace("${arch}", "32"), cooked_dl.replace("${arch}", "32"), QString());
cooked_storage = raw_storage;
cooked_dl = raw_dl;
- add_download(cooked_storage.replace("${arch}", "64"), cooked_dl.replace("${arch}", "64"));
+ add_download(cooked_storage.replace("${arch}", "64"), cooked_dl.replace("${arch}", "64"), QString());
}
else
{
- add_download(raw_storage, raw_dl);
+ add_download(raw_storage, raw_dl, QString());
}
}
return out;