summaryrefslogtreecommitdiffhomepage
path: root/windows/nsis-plugins/src/tray/tray.cpp
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2019-12-11 13:29:50 +0100
committerDavid Lönnhager <david.l@mullvad.net>2019-12-16 15:16:19 +0100
commit11ab41a02e34c0f3907faa5891f64da366bbc8c2 (patch)
treecdef956018d9dd61e654f2157b879dced9b52ce6 /windows/nsis-plugins/src/tray/tray.cpp
parent99eb972eb7c995216ce0b337b14c94cd89254ab4 (diff)
downloadmullvadvpn-11ab41a02e34c0f3907faa5891f64da366bbc8c2.tar.xz
mullvadvpn-11ab41a02e34c0f3907faa5891f64da366bbc8c2.zip
Get rid of duplicate nsis constants
Diffstat (limited to 'windows/nsis-plugins/src/tray/tray.cpp')
-rw-r--r--windows/nsis-plugins/src/tray/tray.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/windows/nsis-plugins/src/tray/tray.cpp b/windows/nsis-plugins/src/tray/tray.cpp
index 3e52ea6e1e..dc5c02ea91 100644
--- a/windows/nsis-plugins/src/tray/tray.cpp
+++ b/windows/nsis-plugins/src/tray/tray.cpp
@@ -1,4 +1,5 @@
#include "stdafx.h"
+#include "../error.h"
#include "trayparser.h"
#include "trayjuggler.h"
#include "resource.h"
@@ -116,11 +117,6 @@ void UpdateRegistry(common::registry::RegistryKey &regkey, const std::wstring &v
// Ensure the GUI's tray icon is placed in the visible part of the notification area.
// This is accomplished by updating a binary blob in the registry.
//
-enum class PromoteTrayIconStatus
-{
- GENERAL_ERROR = 0,
- SUCCESS
-};
void __declspec(dllexport) NSISCALL PromoteTrayIcon
(
@@ -173,16 +169,16 @@ void __declspec(dllexport) NSISCALL PromoteTrayIcon
}
pushstring(L"");
- pushint(PromoteTrayIconStatus::SUCCESS);
+ pushint(NsisStatus::SUCCESS);
}
catch (std::exception &err)
{
pushstring(common::string::ToWide(err.what()).c_str());
- pushint(PromoteTrayIconStatus::GENERAL_ERROR);
+ pushint(NsisStatus::GENERAL_ERROR);
}
catch (...)
{
pushstring(L"Unspecified error");
- pushint(PromoteTrayIconStatus::GENERAL_ERROR);
+ pushint(NsisStatus::GENERAL_ERROR);
}
}