diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-04 20:29:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-04 20:29:03 +0000 |
commit | 1b9fc8e85daeda7179ce197296e65076ac00f327 (patch) | |
tree | c59a3c01d9373419c1ed2079b9e0d77cb5175f75 /sc/source/ui/dbgui/pvfundlg.cxx | |
parent | 747cfc8a84a3bca700aabd552ff93131f5bab083 (diff) |
Workaround dodgy compiler problem.
Bad parse from gcc-4.6.0 of...
pvfundlg.cxx: In function 'bool lclFillListBox(ListBoxType&, const com::sun::star::uno::Sequence<rtl::OUString>&, USHORT) [with ListBoxType = ListBox, USHORT = short unsigned int]':
pvfundlg.cxx:699:60: instantiated from here
pvfundlg.cxx:74:55: error: invalid use of 'com::sun::star::uno::Sequence< <template-parameter-1-1> >::getConstArray [with E = rtl::OUString]' to form a pointer-to-member-function
pvfundlg.cxx:74:55: note: a qualified-id is required
pvfundlg.cxx:74: confused by earlier errors, bailing out
Diffstat (limited to 'sc/source/ui/dbgui/pvfundlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/pvfundlg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx index 4e834fb95935..f0da7090a2a4 100644 --- a/sc/source/ui/dbgui/pvfundlg.cxx +++ b/sc/source/ui/dbgui/pvfundlg.cxx @@ -73,7 +73,8 @@ template< typename ListBoxType > bool lclFillListBox( ListBoxType& rLBox, const Sequence< OUString >& rStrings, USHORT nEmptyPos = LISTBOX_APPEND ) { bool bEmpty = false; - if( const OUString* pStr = rStrings.getConstArray() ) + const OUString* pStr = rStrings.getConstArray(); + if( pStr ) { for( const OUString* pEnd = pStr + rStrings.getLength(); pStr != pEnd; ++pStr ) { |