summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 20:29:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 20:29:03 +0000
commit1b9fc8e85daeda7179ce197296e65076ac00f327 (patch)
treec59a3c01d9373419c1ed2079b9e0d77cb5175f75
parent747cfc8a84a3bca700aabd552ff93131f5bab083 (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
-rw-r--r--sc/source/ui/dbgui/pvfundlg.cxx3
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 )
{