summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-29 10:35:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-30 08:12:07 +0200
commit6e4a2540d4d8ad9e141b87ac3d2123d1c96366ef (patch)
treec37720e7c9cb051f80aa1294b17b53e23b243187 /include/unotools
parent0285492a45e9cc19c26e14dcdf297bcc491da4d2 (diff)
new loplugin:noexceptmove
idea from mike kaganski look for places where we can mark move operators as noexcept, which makes some STL operations more efficient Change-Id: Id732b89d1fcadd5ceb0ea2b9d159fed06136330f Reviewed-on: https://gerrit.libreoffice.org/78251 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/itemholderbase.hxx2
-rw-r--r--include/unotools/tempfile.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/unotools/itemholderbase.hxx b/include/unotools/itemholderbase.hxx
index b401de3435c1..eeb5fa6ee9c0 100644
--- a/include/unotools/itemholderbase.hxx
+++ b/include/unotools/itemholderbase.hxx
@@ -83,7 +83,7 @@ struct TItemInfo
{
}
- TItemInfo(TItemInfo&& other)
+ TItemInfo(TItemInfo&& other) noexcept
: pItem(std::move(other.pItem))
, eItem(other.eItem)
{
diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx
index b77d6e3a798f..b20a4f2fdf40 100644
--- a/include/unotools/tempfile.hxx
+++ b/include/unotools/tempfile.hxx
@@ -71,7 +71,7 @@ public:
TempFile( const OUString& rLeadingChars, bool _bStartWithZero=true, const OUString* pExtension=nullptr,
const OUString* pParent=nullptr, bool bCreateParentDirs=false );
- TempFile(TempFile && other);
+ TempFile(TempFile && other) noexcept;
/**
TempFile will be removed from disk in dtor if EnableKillingFile(true) was called before.