summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-02-12 13:33:02 +0200
committerNoel Grandin <noel@peralex.com>2013-02-12 13:33:02 +0200
commita315af8ef47c2a9c774f3ffd7820091368a9aa5b (patch)
treeea71ead488b8c8e0577c770e0b93d369a8fd0e6a /fpicker
parent33d086fee6ad27cd7cfc35fce37f0d9c17fecf33 (diff)
use a typedef to reduce code duplication
Change-Id: I915b88ad0683cecaf2018a529fb904753a4f27c0
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.hxx10
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.mm5
2 files changed, 7 insertions, 8 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.hxx b/fpicker/source/aqua/SalAquaFilePicker.hxx
index 6d6cbd00755d..f1e4f232ffa8 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.hxx
+++ b/fpicker/source/aqua/SalAquaFilePicker.hxx
@@ -47,12 +47,14 @@
// class declaration
//----------------------------------------------------------
+typedef ::cppu::WeakComponentImplHelper3 <
+ ::com::sun::star::ui::dialogs::XFilePicker3,
+ ::com::sun::star::ui::dialogs::XFilePickerControlAccess,
+ ::com::sun::star::lang::XServiceInfo > SalAquaFilePicker_Base;
+
class SalAquaFilePicker :
public SalAquaPicker,
- public cppu::WeakComponentImplHelper3<
- ::com::sun::star::ui::dialogs::XFilePicker3,
- ::com::sun::star::ui::dialogs::XFilePickerControlAccess,
- ::com::sun::star::lang::XServiceInfo >
+ public SalAquaFilePicker_Base
{
public:
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm
index cb6c2c2beaba..c611ec541d4e 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -93,10 +93,7 @@ namespace
//-----------------------------------------------------------------------------------------
SalAquaFilePicker::SalAquaFilePicker()
- : cppu::WeakComponentImplHelper3<
- XFilePicker3,
- XFilePickerControlAccess,
- lang::XServiceInfo>( m_rbHelperMtx )
+ : SalAquaFilePicker_Base( m_rbHelperMtx )
, m_pFilterHelper( NULL )
{
DBG_PRINT_ENTRY(CLASS_NAME, __func__);