diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2014-11-07 18:08:37 +0100 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2014-11-07 18:08:37 +0100 |
| commit | c62e6320f6b6f3c222b515ca2a9c262d9b76133b (patch) | |
| tree | 60f8e23e4f2c0b96305392b80280ab92e4ffc518 /unity-shared | |
| parent | 3dea32678de4f55ff5024b665d6361292c9fe0b2 (diff) | |
Use initializer list.
(bzr r3884.6.2)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/UScreen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unity-shared/UScreen.cpp b/unity-shared/UScreen.cpp index 7a3e6c6d9..54eca376e 100644 --- a/unity-shared/UScreen.cpp +++ b/unity-shared/UScreen.cpp @@ -98,7 +98,7 @@ std::vector<nux::Geometry> const& UScreen::GetMonitors() const nux::Geometry UScreen::GetScreenGeometry() const { if (monitors_.empty()) - return nux::Geometry(); + return {}; auto rightmost_geo = max_element(monitors_.begin(), monitors_.end(), [](nux::Geometry const& a, nux::Geometry const& b) { return a.x + a.width < b.x + b.width; @@ -111,7 +111,7 @@ nux::Geometry UScreen::GetScreenGeometry() const auto width = rightmost_geo->x + rightmost_geo->width; auto height = lower_geo->y + lower_geo->height; - return nux::Geometry(0, 0, width, height); + return {0, 0, width, height}; } const std::string UScreen::GetMonitorName(int output_number = 0) const |
