summaryrefslogtreecommitdiff
path: root/vcl/workben/vcldemo.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-13 16:44:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-14 08:29:45 +0200
commitc856ae17aff5db258eb16713f56fce9f28400d47 (patch)
tree5a02c77626257837c465212e1345c65334c72e37 /vcl/workben/vcldemo.cxx
parent2d2259c848b43f9f04d5bb6073c00b8ae124534a (diff)
clang-tidy modernize-use-emplace in vcl
Change-Id: Ie0a6d105b0167431275e628935df4f4c1a36d070 Reviewed-on: https://gerrit.libreoffice.org/42259 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/workben/vcldemo.cxx')
-rw-r--r--vcl/workben/vcldemo.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 3033860d79dd..d6ea287da761 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1199,7 +1199,7 @@ public:
for (size_t i = 0; i < SAL_N_ELEMENTS(pNames); i++)
{
maIconNames.push_back(OUString::createFromAscii(pNames[i]));
- maIcons.push_back(BitmapEx(maIconNames[i]));
+ maIcons.emplace_back(maIconNames[i]);
}
}
@@ -1217,7 +1217,7 @@ public:
if (aAllIcons[i].endsWithIgnoreAsciiCase("svg"))
continue; // too slow to load.
maIconNames.push_back(aAllIcons[i]);
- maIcons.push_back(BitmapEx(aAllIcons[i]));
+ maIcons.emplace_back(aAllIcons[i]);
}
}
@@ -1491,7 +1491,7 @@ public:
drawThumbs(rDev, aWholeWin, bVDev);
}
std::vector<VclPtr<vcl::Window> > maInvalidates;
- void addInvalidate(vcl::Window *pWindow) { maInvalidates.push_back(pWindow); };
+ void addInvalidate(vcl::Window *pWindow) { maInvalidates.emplace_back(pWindow); };
void removeInvalidate(vcl::Window *pWindow)
{
for (auto aIt = maInvalidates.begin(); aIt != maInvalidates.end(); ++aIt)