summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/filepicker/FPentry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/win32/filepicker/FPentry.cxx')
-rw-r--r--fpicker/source/win32/filepicker/FPentry.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpicker/source/win32/filepicker/FPentry.cxx b/fpicker/source/win32/filepicker/FPentry.cxx
index f09938ddec51..5c26204a5d27 100644
--- a/fpicker/source/win32/filepicker/FPentry.cxx
+++ b/fpicker/source/win32/filepicker/FPentry.cxx
@@ -46,7 +46,6 @@ using namespace ::com::sun::star::registry ;
using namespace ::cppu ;
using ::com::sun::star::ui::dialogs::XFilePicker;
using ::com::sun::star::ui::dialogs::XFilePicker2;
-using ::com::sun::star::ui::dialogs::XFolderPicker;
//------------------------------------------------
//
@@ -82,7 +81,7 @@ static Reference< XInterface > SAL_CALL createInstance(
static Reference< XInterface > SAL_CALL
createInstance_fop( const Reference< XMultiServiceFactory >& rServiceManager )
{
- return Reference< XInterface >( static_cast< XFolderPicker* >( new CFolderPicker( rServiceManager ) ) );
+ return Reference< XInterface >( static_cast< cppu::OWeakObject * >( new CFolderPicker( rServiceManager ) ) );
}