Kaydet (Commit) f8069254 authored tarafından Luboš Luňák's avatar Luboš Luňák

refactor several SolarMutex releaser classes into one

üst d3acc8e9
......@@ -706,22 +706,6 @@ void FileDialogHelper_Impl::updateVersions()
}
}
// -----------------------------------------------------------------------
class OReleaseSolarMutex
{
private:
const sal_Int32 m_nAquireCount;
public:
OReleaseSolarMutex( )
:m_nAquireCount( Application::ReleaseSolarMutex() )
{
}
~OReleaseSolarMutex( )
{
Application::AcquireSolarMutex( m_nAquireCount );
}
};
// -----------------------------------------------------------------------
IMPL_LINK( FileDialogHelper_Impl, TimeOutHdl_Impl, Timer*, EMPTYARG )
{
......@@ -787,7 +771,7 @@ IMPL_LINK( FileDialogHelper_Impl, TimeOutHdl_Impl, Timer*, EMPTYARG )
try
{
OReleaseSolarMutex aReleaseForCallback;
SolarMutexReleaser aReleaseForCallback;
// clear the preview window
xFilePicker->setImage( FilePreviewImageFormats::BITMAP, aAny );
}
......@@ -1357,7 +1341,7 @@ sal_Int16 FileDialogHelper_Impl::implDoExecute()
#ifdef WNT
if ( mbSystemPicker )
{
OReleaseSolarMutex aSolarMutex;
SolarMutexReleaser aSolarMutex;
nRet = mxFileDlg->execute();
}
else
......
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