From e62dc91cd721d686a71e050553444c39ba8bd87d Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Mon, 15 Jun 2020 21:46:58 +0200 Subject: [PATCH] fix linux/mac build error --- src/file-switch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/file-switch.cpp b/src/file-switch.cpp index 0f72a719..096d7077 100644 --- a/src/file-switch.cpp +++ b/src/file-switch.cpp @@ -196,7 +196,8 @@ bool checkLocalFileContent(FileSwitch &s) equal = rx.exactMatch(in.readAll()); } else { QTextStream in(&file); - equal = compareIgnoringLineEnding(in.readAll(), t); + QString filedata = in.readAll(); + equal = compareIgnoringLineEnding(filedata, t); } file.close(); return equal;