writerfilter/source/dmapper/NumberingManager.cxx |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 6786748a70046c7b7f19388985df8db2b20aeff3
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Mon Oct 17 16:05:38 2016 +0200

    Use perfect forwarding
    
    Change-Id: Id34fb78bc80b0796a09286c4fe5f25c5cf98c211

diff --git a/writerfilter/source/dmapper/NumberingManager.cxx 
b/writerfilter/source/dmapper/NumberingManager.cxx
index 711e7c4..4310e40 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -16,6 +16,11 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
+
+#include <sal/config.h>
+
+#include <utility>
+
 #include "ConversionHelper.hxx"
 #include "NumberingManager.hxx"
 #include "StyleSheetTable.hxx"
@@ -46,9 +51,9 @@ namespace dmapper {
 
 //---------------------------------------------------  Utility functions
 template <typename T>
-beans::PropertyValue lcl_makePropVal(PropertyIds nNameID, T aValue)
+beans::PropertyValue lcl_makePropVal(PropertyIds nNameID, T && aValue)
 {
-    return {getPropertyName(nNameID), 0, uno::makeAny(aValue), 
beans::PropertyState_DIRECT_VALUE};
+    return {getPropertyName(nNameID), 0, 
uno::makeAny(std::forward<T>(aValue)), beans::PropertyState_DIRECT_VALUE};
 }
 
 sal_Int32 lcl_findProperty( const uno::Sequence< beans::PropertyValue >& 
aProps, const OUString& sName )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to