summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-12 12:44:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-12 13:59:50 +0100
commit1a2926a995fdbdcdae0ca6407877084f3520e539 (patch)
tree4ac33d3d0f1d3941c6fe782633fe6e555c157c13 /svx
parenta07c637a0e4fe0ab81db70c69decbc946ad37da9 (diff)
use std::move when popping stuff off stacks
Change-Id: I6ba0ee8afee1a9579045643cd0118cf19599d5b9 Reviewed-on: https://gerrit.libreoffice.org/82497 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
index c5c17c289e7f..f1550728151f 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
@@ -822,7 +822,7 @@ public:
throw ParseError( "Not enough arguments for unary operator" );
// retrieve arguments
- std::shared_ptr<ExpressionNode> pArg( rNodeStack.top() );
+ std::shared_ptr<ExpressionNode> pArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
if( pArg->isConstant() ) // check for constness
@@ -860,9 +860,9 @@ public:
throw ParseError( "Not enough arguments for binary operator" );
// retrieve arguments
- std::shared_ptr<ExpressionNode> pSecondArg( rNodeStack.top() );
+ std::shared_ptr<ExpressionNode> pSecondArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
- std::shared_ptr<ExpressionNode> pFirstArg( rNodeStack.top() );
+ std::shared_ptr<ExpressionNode> pFirstArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
// create combined ExpressionNode
@@ -893,11 +893,11 @@ public:
throw ParseError( "Not enough arguments for ternary operator" );
// retrieve arguments
- std::shared_ptr<ExpressionNode> pThirdArg( rNodeStack.top() );
+ std::shared_ptr<ExpressionNode> pThirdArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
- std::shared_ptr<ExpressionNode> pSecondArg( rNodeStack.top() );
+ std::shared_ptr<ExpressionNode> pSecondArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
- std::shared_ptr<ExpressionNode> pFirstArg( rNodeStack.top() );
+ std::shared_ptr<ExpressionNode> pFirstArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
// create combined ExpressionNode