From 084ee5692831084a721f0257ddb3a3cadec62a64 Mon Sep 17 00:00:00 2001
From: kervala <devnull@localhost>
Date: Wed, 21 Sep 2016 15:21:26 +0200
Subject: [PATCH] Changed: Moved CCOMHelper to utils.h/cpp, see #279

---
 .../tools/client/ryzom_installer/src/main.cpp | 20 -------------------
 1 file changed, 20 deletions(-)

diff --git a/code/ryzom/tools/client/ryzom_installer/src/main.cpp b/code/ryzom/tools/client/ryzom_installer/src/main.cpp
index 3902296ec..c20b40efe 100644
--- a/code/ryzom/tools/client/ryzom_installer/src/main.cpp
+++ b/code/ryzom/tools/client/ryzom_installer/src/main.cpp
@@ -80,26 +80,6 @@ bool copyInstallerFiles(const QStringList &files, const QString &destination)
 	return true;
 }
 
-#ifdef Q_OS_WIN
-class CCOMHelper
-{
-	bool m_mustUninit;
-
-public:
-	CCOMHelper()
-	{
-		// to fix the bug with QFileDialog::getExistingDirectory hanging under Windows
-		m_mustUninit = SUCCEEDED(CoInitialize(NULL));
-	}
-
-	~CCOMHelper()
-	{
-		// only call CoUninitialize if CoInitialize succeeded
-		if (m_mustUninit) CoUninitialize();
-	}
-};
-#endif
-
 int main(int argc, char *argv[])
 {
 #if defined(_MSC_VER) && defined(_DEBUG)