Kaydet (Commit) c4f96bdb authored tarafından Caolán McNamara's avatar Caolán McNamara

aUS is always empty

Change-Id: I77ae732ea4bcaf0e76acb71fd8886af6b36d8284
Reviewed-on: https://gerrit.libreoffice.org/62101
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 574c4373
......@@ -455,7 +455,7 @@ void IconChoiceDialog::ResetPageImpl ()
|
\**********************************************************************/
const sal_uInt16* IconChoiceDialog::GetInputRanges( const SfxItemPool& rPool )
const sal_uInt16* IconChoiceDialog::GetInputRanges( const SfxItemPool& )
{
if ( pSet )
{
......@@ -465,25 +465,9 @@ const sal_uInt16* IconChoiceDialog::GetInputRanges( const SfxItemPool& rPool )
if ( pRanges )
return pRanges.get();
std::vector<sal_uInt16> aUS;
size_t nCount = maPageList.size();
// remove double Id's
{
nCount = aUS.size();
for ( size_t i = 0; i < nCount; ++i )
aUS[i] = rPool.GetWhich( aUS[i] );
}
if ( aUS.size() > 1 )
{
std::sort( aUS.begin(), aUS.end() );
}
pRanges.reset(new sal_uInt16[aUS.size() + 1]);
std::copy( aUS.begin(), aUS.end(), pRanges.get() );
pRanges[aUS.size()] = 0;
pRanges.reset(new sal_uInt16[1]);
pRanges[0] = 0;
return pRanges.get();
}
......
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