commit 92d4ae1fda0e1e5d8b7161afaa3183d66f745bdc
parent 9bce1835789edee48869d9aed602eef008e1f144
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 16 Dec 2015 01:18:19 -0500
mild refactoring – use fstream's operator bool everywhere to test for failure
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/reapack.cpp b/src/reapack.cpp
@@ -97,7 +97,8 @@ void ReaPack::importRemote()
return;
ifstream file(path);
- if(!file.good()) {
+
+ if(!file) {
ShowMessageBox(strerror(errno), title, 0);
return;
}