Kaydet (Commit) 9bcae1a1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

So MSVC 2013 is too dumb...

...to introduce a temporary in

  lcl_makePropVal<sal_Int16>(PROP_START_WITH, m_nIStartAt)

and instead complains: "cannot convert argument 2 from 'sal_Int32' to
'sal_Int16 &&'".

Change-Id: Ic79de8635cc33556ba0803330c0eef314414a7fc
üst 1c304b20
......@@ -19,8 +19,6 @@
#include <sal/config.h>
#include <utility>
#include "ConversionHelper.hxx"
#include "NumberingManager.hxx"
#include "StyleSheetTable.hxx"
......@@ -51,9 +49,9 @@ namespace dmapper {
//--------------------------------------------------- Utility functions
template <typename T>
beans::PropertyValue lcl_makePropVal(PropertyIds nNameID, T && aValue)
beans::PropertyValue lcl_makePropVal(PropertyIds nNameID, T const & aValue)
return {getPropertyName(nNameID), 0, uno::makeAny(std::forward<T>(aValue)), beans::PropertyState_DIRECT_VALUE};
return {getPropertyName(nNameID), 0, uno::makeAny(aValue), beans::PropertyState_DIRECT_VALUE};
sal_Int32 lcl_findProperty( const uno::Sequence< beans::PropertyValue >& aProps, const OUString& sName )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment