aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-09 15:38:38 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-09 15:59:35 +0900
commitbb51378eb5a390bd489fd41bd38e0b262e31479d (patch)
tree135b6bbca84632e3eb1e66db2a26ea5e5d2ea9c4 /src/app.hpp
parentc18d1bfc63d6aad07d58074bc8fd6f15a14c8716 (diff)
Use unique_ptr
I don't debug yet Change-Id: I540f31c3fd5dbe757e254346328a25eb5b58dea5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app.hpp b/src/app.hpp
index 4aaed50..e53824c 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -70,6 +70,8 @@ extern const char kKeyHeightPixel[];
extern const char kKeyWidthMm[];
extern const char kKeyHeightMm[];
+class AppList;
+
struct id_allocator
{
unsigned next = 1;
@@ -205,7 +207,7 @@ struct App
std::vector<int> surface_bg;
explicit App(wl::display *d);
- ~App() = default;
+ ~App()/* = default */;
App(App const &) = delete;
App &operator=(App const &) = delete;
@@ -286,6 +288,9 @@ struct App
WMError lm_layout_change(const struct WMAction &action);
WMError lm_release(const struct WMAction &action);
void lm_enddraw(const char *drawing_name);
+
+ private:
+ std::unique_ptr<wm::AppList> app_list;
};
} // namespace wm