aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/UserInterfaceUtils.h')
-rw-r--r--src/ui/UserInterfaceUtils.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/UserInterfaceUtils.h b/src/ui/UserInterfaceUtils.h
index dab442dd..6aae75ba 100644
--- a/src/ui/UserInterfaceUtils.h
+++ b/src/ui/UserInterfaceUtils.h
@@ -89,7 +89,7 @@ class CommonUtils : public QWidget {
* @brief
*
*/
- using ImportCallbackFunctiopn =
+ using ImportCallbackFunction =
std::function<void(const QString&, const QString&, size_t, size_t)>;
/**
@@ -131,7 +131,7 @@ class CommonUtils : public QWidget {
* @brief
*
*/
- auto isApplicationNeedRestart() -> bool;
+ auto IsApplicationNeedRestart() -> bool;
/**
* @brief
@@ -238,7 +238,7 @@ class CommonUtils : public QWidget {
*/
static void SlotImportKeyFromKeyServer(
int channel, const GpgFrontend::KeyIdArgsList& key_ids,
- const GpgFrontend::UI::CommonUtils::ImportCallbackFunctiopn& callback);
+ const CommonUtils::ImportCallbackFunction& callback);
/**
* @brief
@@ -282,7 +282,8 @@ class CommonUtils : public QWidget {
std::shared_ptr<GpgImportInformation>);
private:
- static std::unique_ptr<CommonUtils> instance_; ///<
+ static QScopedPointer<CommonUtils> instance; ///<
+
bool application_need_to_restart_at_once_ = false;
};