From 1b9fc8e85daeda7179ce197296e65076ac00f327 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 4 Mar 2011 20:29:03 +0000 Subject: 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&, 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< >::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 --- sc/source/ui/dbgui/pvfundlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- cgit