summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/tpoption.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/dlg/tpoption.cxx')
-rw-r--r--sd/source/ui/dlg/tpoption.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index 8f3510bf7839..b05e705a11a9 100644
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -239,12 +239,10 @@ SdTpOptionsMisc::SdTpOptionsMisc(vcl::Window* pParent, const SfxItemSet& rInAttr
m_pScaleFrame->Hide();
// fill ListBox with metrics
- SvxStringArray aMetricArr( RID_SVXSTR_FIELDUNIT_TABLE );
-
- for ( sal_uInt32 i = 0; i < aMetricArr.Count(); ++i )
+ for (sal_uInt32 i = 0; i < SvxFieldUnitTable::Count(); ++i)
{
- OUString sMetric = aMetricArr.GetStringByPos( i );
- sal_IntPtr nFieldUnit = aMetricArr.GetValue( i );
+ OUString sMetric = SvxFieldUnitTable::GetString(i);
+ sal_IntPtr nFieldUnit = SvxFieldUnitTable::GetValue(i);
sal_Int32 nPos = m_pLbMetric->InsertEntry( sMetric );
m_pLbMetric->SetEntryData( nPos, reinterpret_cast<void*>(nFieldUnit) );
}