summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-01-30 01:12:21 +0100
committerPetr Mrázek <peterix@gmail.com>2019-01-30 01:12:21 +0100
commite4599ee2d132a57253a7c52917ff107e06040946 (patch)
tree7ff4557c679d2816945b21a2d70a894e69d81e9d /api
parent62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e (diff)
downloadMultiMC-e4599ee2d132a57253a7c52917ff107e06040946.tar
MultiMC-e4599ee2d132a57253a7c52917ff107e06040946.tar.gz
MultiMC-e4599ee2d132a57253a7c52917ff107e06040946.tar.lz
MultiMC-e4599ee2d132a57253a7c52917ff107e06040946.tar.xz
MultiMC-e4599ee2d132a57253a7c52917ff107e06040946.zip
NOISSUE fix builds?
Diffstat (limited to 'api')
-rw-r--r--api/logic/minecraft/gameoptions/GameOptions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/gameoptions/GameOptions.cpp b/api/logic/minecraft/gameoptions/GameOptions.cpp
index 5dab8b86..e547b32a 100644
--- a/api/logic/minecraft/gameoptions/GameOptions.cpp
+++ b/api/logic/minecraft/gameoptions/GameOptions.cpp
@@ -17,7 +17,7 @@ bool load(const QString& path, std::vector<GameOptionItem> &contents, int & vers
while(!file.atEnd())
{
auto line = file.readLine();
- if(line.back() == '\n')
+ if(line.endsWith('\n'))
{
line.chop(1);
}