summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/region.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r--vcl/source/gdi/region.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index efe1d989fc7c..07ca0e54d527 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -1564,7 +1564,7 @@ SvStream& ReadRegion(SvStream& rIStrm, vcl::Region& rRegion)
{
std::shared_ptr<RegionBand> xNewRegionBand(std::make_shared<RegionBand>());
bool bSuccess = xNewRegionBand->load(rIStrm);
- rRegion.mpRegionBand = xNewRegionBand;
+ rRegion.mpRegionBand = std::move(xNewRegionBand);
bool bHasPolyPolygon(false);
if (aCompat.GetVersion() >= 2)