summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-08 16:34:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-08 20:44:25 +0100
commit7fd6d43c1dae1548aca5ae4ed6d63cbf7e10b7ea (patch)
treebfb79a7732e4948b871856a89c3affdc0877cc2a /fpicker
parenta77a573883ce49d045159bdf3f8735594d1e81b4 (diff)
Related: fdo#38838 String::GetBufferAccess is now no more
Change-Id: I9fdd600fd0a530c0763875109eee6600e4a77879
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 40693ab1ec89..d2f18376f510 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -3288,12 +3288,12 @@ void SvtFileDialog::appendDefaultExtension(String& _rFileName,
for ( nIndex = 0; nIndex < nWildCard; nIndex++ )
{
- String aExt(aType.GetToken( 0, FILEDIALOG_DEF_EXTSEP, nPos ));
+ OUString aExt(aType.GetToken( 0, FILEDIALOG_DEF_EXTSEP, nPos ));
// take care of a leading *
- sal_uInt16 nExtOffset = (aExt.GetBuffer()[0] == '*' ? 1 : 0);
- sal_Unicode* pExt = aExt.GetBufferAccess() + nExtOffset;
- xub_StrLen nExtLen = aExt.Len() - nExtOffset;
- xub_StrLen nOffset = aTemp.Len() - nExtLen;
+ sal_Int32 nExtOffset = (aExt[0] == '*' ? 1 : 0);
+ const sal_Unicode* pExt = aExt.getStr() + nExtOffset;
+ sal_Int32 nExtLen = aExt.getLength() - nExtOffset;
+ sal_Int32 nOffset = aTemp.Len() - nExtLen;
// minimize search by starting at last possible index
if ( aTemp.Search(pExt, nOffset) == nOffset )
break;