diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-28 15:19:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-29 17:50:36 +0200 |
commit | f57c2e65a50585ef4a282549c13655d9afc83d86 (patch) | |
tree | f6c105ca7cf14ee1f33291916b596ad58cb0256a /vcl/inc | |
parent | b3cd042285af08a0bdc5dea608d131424d850f9c (diff) |
std::unique_ptr->std::optional
Change-Id: Ie3e0eb7cb7ca25536e825e30c53e112bf537b325
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116379
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/accmgr.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/accmgr.hxx b/vcl/inc/accmgr.hxx index 1e57ed44dd07..55e028f69a1b 100644 --- a/vcl/inc/accmgr.hxx +++ b/vcl/inc/accmgr.hxx @@ -21,7 +21,7 @@ #define INCLUDED_VCL_INC_ACCMGR_HXX #include <vector> -#include <memory> +#include <optional> #include <vcl/keycod.hxx> @@ -30,8 +30,8 @@ class Accelerator; class ImplAccelManager { private: - std::unique_ptr<std::vector< Accelerator* >> mpAccelList; - std::unique_ptr<std::vector< Accelerator* >> mpSequenceList; + std::optional<std::vector< Accelerator* >> mxAccelList; + std::optional<std::vector< Accelerator* >> mxSequenceList; public: ImplAccelManager() |