summaryrefslogtreecommitdiffstats
path: root/logic/InstanceFactory.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-01 16:34:51 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-01 16:34:51 +0100
commitf56eff04ef4d23b62a6e095eca5d4b9f2b52e023 (patch)
treed7e5ccd335f4be09d11d3d6bb9c333fa6945516c /logic/InstanceFactory.cpp
parenta3fbf05c7b77d513b107e34732b2d04045a05c3c (diff)
downloadMultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar
MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar.gz
MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar.lz
MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar.xz
MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.zip
Fix (hopefully) library dependency resolution.
Installing libs is now enabled, hardcoded. Enable -Wall for all builds. Fix many warnings and latent bugs.
Diffstat (limited to 'logic/InstanceFactory.cpp')
-rw-r--r--logic/InstanceFactory.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/logic/InstanceFactory.cpp b/logic/InstanceFactory.cpp
index e1f1f202..66b271d0 100644
--- a/logic/InstanceFactory.cpp
+++ b/logic/InstanceFactory.cpp
@@ -133,16 +133,12 @@ InstanceFactory::InstCreateError InstanceFactory::copyInstance(BaseInstance *&ne
{
case NoLoadError:
return NoCreateError;
- case UnknownLoadError:
- {
- rootDir.removeRecursively();
- return UnknownCreateError;
- }
case NotAnInstance:
- {
rootDir.removeRecursively();
return CantCreateDir;
+ default:
+ case UnknownLoadError:
+ rootDir.removeRecursively();
+ return UnknownCreateError;
}
- }
- ;
}