Apache OpenOffice (AOO) Bugzilla – Issue 14733
Compile Error with gcc2 in sfx2/source/dialog/filedlghelper.cxx due to missing cast
Last modified: 2004-02-15 07:20:35 UTC
As the subject says, there is a problem compiling this file with gcc2. Adding a simple cast resolves the issue: --- sfx2/source/dialog/filedlghelper.cxx 4 Apr 2003 18:06:00 -0000 1.102 +++ sfx2/source/dialog/filedlghelper.cxx 20 May 2003 05:53:37 -0000 @@ -657,7 +657,7 @@ ( mbSelectionEnabled && pFilter && ( pFilter->GetFilterFlags() & SFX_FILTER_SUPPORTSSELECTION ) != 0 ) ); Reference< XFilePickerControlAccess > xCtrlAccess( mxFileDlg, UNO_QUERY ); - xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_SELECTION, 0, makeAny( mbSelection ) ); + xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_SELECTION, 0, makeAny( (sal_Bool)mbSelection ) ); } // ------------------------------------------------------------------------
accepting issue
Also in sfx2/source/doc/sfxbasemodel.cxx This cast was here previously, but removed for some reason. --- sfx2/source/doc/sfxbasemodel.cxx 5 May 2003 16:27:50 -0000 1.48 +++ sfx2/source/doc/sfxbasemodel.cxx 20 May 2003 06:09:48 -0000 @@ -2461,12 +2461,12 @@ SfxObjectShell* SfxBaseModel::GetObjectShell() const { - return m_pData ? m_pData->m_pObjectShell : 0; + return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0; } SfxObjectShell* SfxBaseModel::impl_getObjectShell() const { - return m_pData ? m_pData->m_pObjectShell : 0; + return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0; } //________________________________________________________________________________________________________
also in: --- sfx2/source/bastyp/progress.cxx 27 Mar 2003 11:27:50 -0000 1.13 +++ sfx2/source/bastyp/progress.cxx 20 May 2003 04:27:19 -0000 @@ -216,7 +216,7 @@ void SfxProgress_Impl::Enable_Impl( BOOL bEnable ) { - SfxObjectShell* pDoc = bAllDocs ? NULL : xObjSh; + SfxObjectShell* pDoc = bAllDocs ? NULL : (SfxObjectShell*) xObjSh; SfxViewFrame *pFrame= SfxViewFrame::GetFirst(pDoc); while ( pFrame ) {
re-assigning to Nick Blievers
set target milestone
i think these patches are already applied.
mark as verified
close issue.