diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2013-08-01 00:59:33 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-08-01 02:19:44 +0200 |
commit | 3f28d85ed0f1ed6112f36d63abacb7999711eae2 (patch) | |
tree | 04d13177d08e675ed469bddf8efa10f8b9226689 /cui | |
parent | 7c63bf6cc1b81d5834d7a615b1c3d240b33110ab (diff) |
Fix indent, use more idiomatic const ascii array & methods.
Change-Id: Ib8b03f96b3b07f6846c7ffce8522bb03fb1301a3
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 71a04d1c3402..e9cad7004131 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -89,20 +89,20 @@ void CuiAboutConfigTabPage::InsertEntry( OUString& rProp, OUString& rStatus, OU void CuiAboutConfigTabPage::Reset( const SfxItemSet& ) { - OUString sRootNodePath = "/"; - pPrefBox->Clear(); + OUString sRootNodePath = "/"; + pPrefBox->Clear(); - m_pDefaultBtn->Enable(sal_False); - m_pEditBtn->Enable(sal_False); + m_pDefaultBtn->Enable(sal_False); + m_pEditBtn->Enable(sal_False); - OUString array[ 3 ] = { + const char* entries[] = { "/org.openoffice.Office.Common", "/org.openoffice.Office.Math", "/org.openoffice.Office.Addons" }; - for (sal_Int16 nInd = 0; nInd < 3 ; ++nInd ) + for (size_t nInd = 0; nInd < SAL_N_ELEMENTS(entries); ++nInd ) { - sRootNodePath = array[nInd]; + sRootNodePath = OUString::createFromAscii( entries[nInd] ); Reference< XNameAccess > xConfigAccess = getConfigAccess( sRootNodePath, sal_False ); FillItems( xConfigAccess, sRootNodePath ); } |