Kaydet (Commit) 768f6510 authored tarafından Chris Sherlock's avatar Chris Sherlock

tdf#43157: convert most of vcl codebase away from OSL_ASSERT to assert

Change-Id: Ifaae7af7169fe6c24d152f8aba51ba3ff3bdb9f8
üst 34ca5a2f
...@@ -80,7 +80,7 @@ const std::string TAG_END_BODY = std::string("</body"); ...@@ -80,7 +80,7 @@ const std::string TAG_END_BODY = std::string("</body");
Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml) Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml)
{ {
OSL_ASSERT(aTextHtml.getLength() > 0); assert(aTextHtml.getLength() > 0);
if (!(aTextHtml.getLength() > 0)) if (!(aTextHtml.getLength() > 0))
return Sequence<sal_Int8>(); return Sequence<sal_Int8>();
......
...@@ -302,7 +302,7 @@ static std::ostream &operator<<(std::ostream &s, NSObject *obj) { ...@@ -302,7 +302,7 @@ static std::ostream &operator<<(std::ostream &s, NSObject *obj) {
} catch (const Exception&) { } catch (const Exception&) {
} }
OSL_ASSERT( false ); assert( false );
return nil; return nil;
} }
......
...@@ -1695,7 +1695,7 @@ void PDFWriterImpl::putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStre ...@@ -1695,7 +1695,7 @@ void PDFWriterImpl::putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStre
writeBuffer( &io_rState.getByte(), 1 ); writeBuffer( &io_rState.getByte(), 1 );
io_rState.flush(); io_rState.flush();
} }
OSL_ASSERT( i_nLength < 9 ); assert( i_nLength < 9 );
static const unsigned int msbmask[9] = { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }; static const unsigned int msbmask[9] = { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
io_rState.mnBuffer |= static_cast<sal_uInt8>( (i_nCode & msbmask[i_nLength]) << (io_rState.mnNextBitPos - i_nLength) ); io_rState.mnBuffer |= static_cast<sal_uInt8>( (i_nCode & msbmask[i_nLength]) << (io_rState.mnNextBitPos - i_nLength) );
io_rState.mnNextBitPos -= i_nLength; io_rState.mnNextBitPos -= i_nLength;
...@@ -1943,7 +1943,7 @@ void PDFWriterImpl::putG4Span( long i_nSpan, bool i_bWhitePixel, BitStreamState& ...@@ -1943,7 +1943,7 @@ void PDFWriterImpl::putG4Span( long i_nSpan, bool i_bWhitePixel, BitStreamState&
if( i_nSpan > 63 ) if( i_nSpan > 63 )
{ {
sal_uInt32 nTabIndex = 63 + (i_nSpan >> 6); sal_uInt32 nTabIndex = 63 + (i_nSpan >> 6);
OSL_ASSERT( pTable[nTabIndex].mnEncodedPixels == static_cast<sal_uInt32>(64*(i_nSpan >> 6)) ); assert( pTable[nTabIndex].mnEncodedPixels == static_cast<sal_uInt32>(64*(i_nSpan >> 6)) );
putG4Bits( pTable[nTabIndex].mnCodeBits, pTable[nTabIndex].mnCode, io_rState ); putG4Bits( pTable[nTabIndex].mnCodeBits, pTable[nTabIndex].mnCode, io_rState );
i_nSpan -= pTable[nTabIndex].mnEncodedPixels; i_nSpan -= pTable[nTabIndex].mnEncodedPixels;
} }
......
...@@ -1015,7 +1015,7 @@ bool PNGReaderImpl::ImplPreparePass() ...@@ -1015,7 +1015,7 @@ bool PNGReaderImpl::ImplPreparePass()
void PNGReaderImpl::ImplApplyFilter() void PNGReaderImpl::ImplApplyFilter()
{ {
OSL_ASSERT( mnScansize >= mnBPP + 1 ); assert( mnScansize >= mnBPP + 1 );
const sal_uInt8* const pScanEnd = mpInflateInBuf + mnScansize; const sal_uInt8* const pScanEnd = mpInflateInBuf + mnScansize;
sal_uInt8 nFilterType = *mpInflateInBuf; // the filter type may change each scanline sal_uInt8 nFilterType = *mpInflateInBuf; // the filter type may change each scanline
......
...@@ -863,8 +863,8 @@ bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const ...@@ -863,8 +863,8 @@ bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const
ImplRegionBand* ImplRegionBand::SplitBand (const sal_Int32 nY) ImplRegionBand* ImplRegionBand::SplitBand (const sal_Int32 nY)
{ {
OSL_ASSERT(nY>mnYTop); assert(nY > mnYTop);
OSL_ASSERT(nY<=mnYBottom); assert(nY <= mnYBottom);
// Create a copy of the given band (we tell the constructor to copy the points together // Create a copy of the given band (we tell the constructor to copy the points together
// with the seps.) // with the seps.)
......
...@@ -88,7 +88,7 @@ namespace ...@@ -88,7 +88,7 @@ namespace
*/ */
std::unique_ptr<RegionBand> ImplRectilinearPolygonToBands(const tools::PolyPolygon& rPolyPoly) std::unique_ptr<RegionBand> ImplRectilinearPolygonToBands(const tools::PolyPolygon& rPolyPoly)
{ {
OSL_ASSERT(ImplIsPolygonRectilinear (rPolyPoly)); assert(ImplIsPolygonRectilinear (rPolyPoly));
// Create a new RegionBand object as container of the bands. // Create a new RegionBand object as container of the bands.
std::unique_ptr<RegionBand> pRegionBand( o3tl::make_unique<RegionBand>() ); std::unique_ptr<RegionBand> pRegionBand( o3tl::make_unique<RegionBand>() );
...@@ -120,7 +120,7 @@ namespace ...@@ -120,7 +120,7 @@ namespace
} }
// At this point the line has to be vertical. // At this point the line has to be vertical.
OSL_ASSERT(aStart.X() == aEnd.X()); assert(aStart.X() == aEnd.X());
// Sort y-coordinates to simplify the algorithm and store the // Sort y-coordinates to simplify the algorithm and store the
// direction separately. The direction is calculated as it is // direction separately. The direction is calculated as it is
......
...@@ -317,7 +317,7 @@ bool RegionBand::isSingleRectangle() const ...@@ -317,7 +317,7 @@ bool RegionBand::isSingleRectangle() const
void RegionBand::InsertBand(ImplRegionBand* pPreviousBand, ImplRegionBand* pBandToInsert) void RegionBand::InsertBand(ImplRegionBand* pPreviousBand, ImplRegionBand* pBandToInsert)
{ {
OSL_ASSERT(pBandToInsert!=nullptr); assert(pBandToInsert != nullptr);
if(!pPreviousBand) if(!pPreviousBand)
{ {
......
...@@ -135,7 +135,7 @@ std::shared_ptr<SvStream> wrapStream(css::uno::Reference< css::io::XInputStream ...@@ -135,7 +135,7 @@ std::shared_ptr<SvStream> wrapStream(css::uno::Reference< css::io::XInputStream
// SeekPos implementation for an XInputStream that is not also XSeekable // SeekPos implementation for an XInputStream that is not also XSeekable
// (cf. "@@@" at tags/DEV300_m37/svtools/source/misc1/strmadpt.cxx@264807 // (cf. "@@@" at tags/DEV300_m37/svtools/source/misc1/strmadpt.cxx@264807
// l. 593): // l. 593):
OSL_ASSERT(stream.is()); assert(stream.is());
std::shared_ptr<SvStream> s(std::make_shared<SvMemoryStream>()); std::shared_ptr<SvStream> s(std::make_shared<SvMemoryStream>());
for (;;) for (;;)
{ {
...@@ -398,10 +398,10 @@ void ImplImageTree::createStyle() ...@@ -398,10 +398,10 @@ void ImplImageTree::createStyle()
if (maCurrentStyle != "default") if (maCurrentStyle != "default")
{ {
INetURLObject aUrl(getIconThemeFolderUrl()); INetURLObject aUrl(getIconThemeFolderUrl());
OSL_ASSERT(!aUrl.HasError()); assert(!aUrl.HasError());
bool ok = aUrl.Append("images_" + maCurrentStyle, INetURLObject::EncodeMechanism::All); bool ok = aUrl.Append("images_" + maCurrentStyle, INetURLObject::EncodeMechanism::All);
OSL_ASSERT(ok); (void) ok; assert(ok); (void) ok;
sThemeUrl = aUrl.GetMainURL(INetURLObject::DecodeMechanism::NONE) + ".zip"; sThemeUrl = aUrl.GetMainURL(INetURLObject::DecodeMechanism::NONE) + ".zip";
} }
......
...@@ -105,7 +105,7 @@ bool EnumContext::operator!= (const EnumContext& rOther) ...@@ -105,7 +105,7 @@ bool EnumContext::operator!= (const EnumContext& rOther)
void EnumContext::AddEntry (const ::rtl::OUString& rsName, const Application eApplication) void EnumContext::AddEntry (const ::rtl::OUString& rsName, const Application eApplication)
{ {
maApplicationMap[rsName] = eApplication; maApplicationMap[rsName] = eApplication;
OSL_ASSERT(eApplication<=Application::LAST); assert(eApplication <= Application::LAST);
maApplicationVector[eApplication]=rsName; maApplicationVector[eApplication]=rsName;
} }
......
...@@ -527,7 +527,7 @@ void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUSt ...@@ -527,7 +527,7 @@ void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUSt
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
if( FilterNameExists( aTitle ) ) if( FilterNameExists( aTitle ) )
throw IllegalArgumentException(); throw IllegalArgumentException();
...@@ -543,7 +543,7 @@ void SAL_CALL SalGtkFilePicker::setCurrentFilter( const OUString& aTitle ) ...@@ -543,7 +543,7 @@ void SAL_CALL SalGtkFilePicker::setCurrentFilter( const OUString& aTitle )
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
if( aTitle != m_aCurrentFilter ) if( aTitle != m_aCurrentFilter )
{ {
...@@ -602,7 +602,7 @@ OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() ...@@ -602,7 +602,7 @@ OUString SAL_CALL SalGtkFilePicker::getCurrentFilter()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
UpdateFilterfromUI(); UpdateFilterfromUI();
...@@ -615,7 +615,7 @@ void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle ...@@ -615,7 +615,7 @@ void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
// TODO m_pImpl->appendFilterGroup( sGroupTitle, aFilters ); // TODO m_pImpl->appendFilterGroup( sGroupTitle, aFilters );
// check the names // check the names
...@@ -644,7 +644,7 @@ void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) ...@@ -644,7 +644,7 @@ void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode )
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER(m_pDialog), bMode ); gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER(m_pDialog), bMode );
} }
...@@ -653,7 +653,7 @@ void SAL_CALL SalGtkFilePicker::setDefaultName( const OUString& aName ) ...@@ -653,7 +653,7 @@ void SAL_CALL SalGtkFilePicker::setDefaultName( const OUString& aName )
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
OString aStr = OUStringToOString( aName, RTL_TEXTENCODING_UTF8 ); OString aStr = OUStringToOString( aName, RTL_TEXTENCODING_UTF8 );
GtkFileChooserAction eAction = gtk_file_chooser_get_action( GTK_FILE_CHOOSER( m_pDialog ) ); GtkFileChooserAction eAction = gtk_file_chooser_get_action( GTK_FILE_CHOOSER( m_pDialog ) );
...@@ -714,7 +714,7 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() ...@@ -714,7 +714,7 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
GSList* pPathList = gtk_file_chooser_get_uris( GTK_FILE_CHOOSER(m_pDialog) ); GSList* pPathList = gtk_file_chooser_get_uris( GTK_FILE_CHOOSER(m_pDialog) );
...@@ -868,7 +868,7 @@ sal_Int16 SAL_CALL SalGtkFilePicker::execute() ...@@ -868,7 +868,7 @@ sal_Int16 SAL_CALL SalGtkFilePicker::execute()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
sal_Int16 retVal = 0; sal_Int16 retVal = 0;
...@@ -1232,7 +1232,7 @@ void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nContr ...@@ -1232,7 +1232,7 @@ void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nContr
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
GType tType; GType tType;
GtkWidget *pWidget; GtkWidget *pWidget;
...@@ -1257,7 +1257,7 @@ uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nC ...@@ -1257,7 +1257,7 @@ uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nC
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
uno::Any aRetval; uno::Any aRetval;
...@@ -1280,7 +1280,7 @@ void SAL_CALL SalGtkFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bE ...@@ -1280,7 +1280,7 @@ void SAL_CALL SalGtkFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bE
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
GtkWidget *pWidget; GtkWidget *pWidget;
...@@ -1303,7 +1303,7 @@ void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString& ...@@ -1303,7 +1303,7 @@ void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString&
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
GType tType; GType tType;
GtkWidget *pWidget; GtkWidget *pWidget;
...@@ -1339,7 +1339,7 @@ OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId ) ...@@ -1339,7 +1339,7 @@ OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId )
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
GType tType; GType tType;
OString aTxt; OString aTxt;
...@@ -1361,7 +1361,7 @@ uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() ...@@ -1361,7 +1361,7 @@ uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
// TODO return m_pImpl->getSupportedImageFormats(); // TODO return m_pImpl->getSupportedImageFormats();
return uno::Sequence<sal_Int16>(); return uno::Sequence<sal_Int16>();
...@@ -1371,7 +1371,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() ...@@ -1371,7 +1371,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
// TODO return m_pImpl->getTargetColorDepth(); // TODO return m_pImpl->getTargetColorDepth();
return 0; return 0;
...@@ -1381,7 +1381,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth() ...@@ -1381,7 +1381,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
return m_PreviewImageWidth; return m_PreviewImageWidth;
} }
...@@ -1390,7 +1390,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight() ...@@ -1390,7 +1390,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
return m_PreviewImageHeight; return m_PreviewImageHeight;
} }
...@@ -1399,7 +1399,7 @@ void SAL_CALL SalGtkFilePicker::setImage( sal_Int16 /*aImageFormat*/, const uno: ...@@ -1399,7 +1399,7 @@ void SAL_CALL SalGtkFilePicker::setImage( sal_Int16 /*aImageFormat*/, const uno:
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
// TODO m_pImpl->setImage( aImageFormat, aImage ); // TODO m_pImpl->setImage( aImageFormat, aImage );
} }
...@@ -1499,7 +1499,7 @@ sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState ) ...@@ -1499,7 +1499,7 @@ sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState )
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
// TODO return m_pImpl->setShowState( bShowState ); // TODO return m_pImpl->setShowState( bShowState );
if( bool(bShowState) != mbPreviewState ) if( bool(bShowState) != mbPreviewState )
...@@ -1533,7 +1533,7 @@ sal_Bool SAL_CALL SalGtkFilePicker::getShowState() ...@@ -1533,7 +1533,7 @@ sal_Bool SAL_CALL SalGtkFilePicker::getShowState()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
return mbPreviewState; return mbPreviewState;
} }
...@@ -1712,7 +1712,7 @@ void SAL_CALL SalGtkFilePicker::cancel() ...@@ -1712,7 +1712,7 @@ void SAL_CALL SalGtkFilePicker::cancel()
{ {
SolarMutexGuard g; SolarMutexGuard g;
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
// TODO m_pImpl->cancel(); // TODO m_pImpl->cancel();
} }
......
...@@ -199,7 +199,7 @@ SalGtkPicker::~SalGtkPicker() ...@@ -199,7 +199,7 @@ SalGtkPicker::~SalGtkPicker()
void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory ) void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory )
{ {
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
OString aTxt = unicodetouri(aDirectory); OString aTxt = unicodetouri(aDirectory);
if( aTxt.isEmpty() ){ if( aTxt.isEmpty() ){
...@@ -217,7 +217,7 @@ void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory ...@@ -217,7 +217,7 @@ void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory
OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory() OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory()
{ {
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
gchar* pCurrentFolder = gchar* pCurrentFolder =
gtk_file_chooser_get_current_folder_uri( GTK_FILE_CHOOSER( m_pDialog ) ); gtk_file_chooser_get_current_folder_uri( GTK_FILE_CHOOSER( m_pDialog ) );
...@@ -229,7 +229,7 @@ OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory() ...@@ -229,7 +229,7 @@ OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory()
void SAL_CALL SalGtkPicker::implsetTitle( const OUString& aTitle ) void SAL_CALL SalGtkPicker::implsetTitle( const OUString& aTitle )
{ {
OSL_ASSERT( m_pDialog != nullptr ); assert( m_pDialog != nullptr );
OString aWindowTitle = OUStringToOString( aTitle, RTL_TEXTENCODING_UTF8 ); OString aWindowTitle = OUStringToOString( aTitle, RTL_TEXTENCODING_UTF8 );
......
...@@ -235,7 +235,7 @@ UnxFilePicker::~UnxFilePicker() ...@@ -235,7 +235,7 @@ UnxFilePicker::~UnxFilePicker()
void SAL_CALL UnxFilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener ) void SAL_CALL UnxFilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener )
{ {
OSL_ASSERT( m_pNotifyThread ); assert( m_pNotifyThread );
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
m_pNotifyThread->addFilePickerListener( xListener ); m_pNotifyThread->addFilePickerListener( xListener );
...@@ -243,7 +243,7 @@ void SAL_CALL UnxFilePicker::addFilePickerListener( const uno::Reference<XFilePi ...@@ -243,7 +243,7 @@ void SAL_CALL UnxFilePicker::addFilePickerListener( const uno::Reference<XFilePi
void SAL_CALL UnxFilePicker::removeFilePickerListener( const uno::Reference<XFilePickerListener>& xListener ) void SAL_CALL UnxFilePicker::removeFilePickerListener( const uno::Reference<XFilePickerListener>& xListener )
{ {
OSL_ASSERT( m_pNotifyThread ); assert( m_pNotifyThread );
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
m_pNotifyThread->removeFilePickerListener( xListener ); m_pNotifyThread->removeFilePickerListener( xListener );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment