summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-10-31 07:26:34 -0400
committerAshod Nakashian <ashnakash@gmail.com>2019-11-10 23:39:01 +0100
commit51d3360438c02f16cc7b29990244d4a72959fd2c (patch)
treefab8656eba882ee8a382c5462fddc4a860f42ce9 /vcl
parentfb6da5e371a0cd7a6c12bc94ef051fced795a06c (diff)
sidebar: check for valid current deck before closing
Also, cleanup unused/unnecessary LOKNotifier logic from Deck.cxx and use emplace_back where possible. Change-Id: I300c5158b12593e8130f5b6273c1ea3bcbefea7f Reviewed-on: https://gerrit.libreoffice.org/82402 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/paint.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index b7b8893be618..88712e3c72fa 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1220,11 +1220,11 @@ void Window::PixelInvalidate(const tools::Rectangle* pRectangle)
// In case we are routing the window, notify the client
std::vector<vcl::LOKPayloadItem> aPayload;
if (pRectangle)
- aPayload.push_back(std::make_pair(OString("rectangle"), pRectangle->toString()));
+ aPayload.emplace_back("rectangle", pRectangle->toString());
else
{
const tools::Rectangle aRect(Point(0, 0), GetSizePixel());
- aPayload.push_back(std::make_pair(OString("rectangle"), aRect.toString()));
+ aPayload.emplace_back("rectangle", aRect.toString());
}
pNotifier->notifyWindow(GetLOKWindowId(), "invalidate", aPayload);