diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-06 20:10:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-07 13:07:58 +0000 |
commit | eee0206831f9682f1fa1806d08bbbeaf4783b4e9 (patch) | |
tree | 1948c1eaace9bf62ddf2069132173e7de53871d4 /uui/source/iahndl.cxx | |
parent | e51f247484e4c967838971a0ff5f915cc7f2e376 (diff) |
interim convert to ResArray
Change-Id: I74c8ad1242611321401f6282dfbce3205977394a
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r-- | uui/source/iahndl.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index f2915b119e49..fe4aebb6379c 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -1302,14 +1302,10 @@ bool ErrorResource::getString(ErrCode nErrorCode, OUString &rString) const { - ResId aResId(static_cast< sal_uInt16 >(nErrorCode & ERRCODE_RES_MASK), - *m_pResMgr); - aResId.SetRT(RSC_STRING); - if (!IsAvailableRes(aResId)) + sal_uInt32 nIdx = m_aStringArray.FindIndex(nErrorCode & ERRCODE_RES_MASK); + if (nIdx == RESARRAY_INDEX_NOTFOUND) return false; - aResId.SetAutoRelease(false); - rString = aResId.toString(); - m_pResMgr->PopContext(); + rString = m_aStringArray.GetString(nIdx); return true; } |