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

default initialization of object of const type w/o user-provided default ctor

...same as aef1826d, actually fallout from
diverging behavior regarding DR 253 betwween GCC/libstdc++ and Clang, cf. thread
starting at <https://gcc.gnu.org/ml/libstdc++/2015-04/msg00165.html>
"std::__debug::vector default ctor must not be defaulted"

Change-Id: I9189d472b57249857d64f7d807a0e08fc1758759
üst d798ee8f
...@@ -301,7 +301,7 @@ const ::std::vector<SCROW>& ScDPFilteredCache::getFieldEntries( sal_Int32 nColu ...@@ -301,7 +301,7 @@ const ::std::vector<SCROW>& ScDPFilteredCache::getFieldEntries( sal_Int32 nColu
if (nColumn < 0 || static_cast<size_t>(nColumn) >= maFieldEntries.size()) if (nColumn < 0 || static_cast<size_t>(nColumn) >= maFieldEntries.size())
{ {
// index out of bound. Hopefully this code will never be reached. // index out of bound. Hopefully this code will never be reached.
static const ::std::vector<SCROW> emptyEntries; static const ::std::vector<SCROW> emptyEntries{};
return emptyEntries; return emptyEntries;
} }
return maFieldEntries[nColumn]; return maFieldEntries[nColumn];
......
...@@ -422,7 +422,7 @@ drawinglayer::primitive2d::Primitive2DSequence ViewRedirector::createRedirectedP ...@@ -422,7 +422,7 @@ drawinglayer::primitive2d::Primitive2DSequence ViewRedirector::createRedirectedP
fPosX, fPosY)); fPosX, fPosY));
// create DXTextArray (can be empty one) // create DXTextArray (can be empty one)
const ::std::vector< double > aDXArray; const ::std::vector< double > aDXArray{};
// create locale; this may need some more information in the future // create locale; this may need some more information in the future
const ::com::sun::star::lang::Locale aLocale; const ::com::sun::star::lang::Locale aLocale;
......
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