summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-27 13:38:27 +0200
committerNoel Grandin <noel@peralex.com>2013-08-29 09:30:09 +0200
commit22db6f1c225e92b0c6ea43dbc5d18b824e393a66 (patch)
tree968c65d964a3d2d8b68802bb0ad6be8c119e8b8b
parentfd7ef5f6386d6ba6951c88ebfafb107f1fa63400 (diff)
convert include/sfx2/docinsert.hxx from String to OUString
Change-Id: I07b498f2a90399c8ee208de2bc4c780427fe4c17
-rw-r--r--include/sfx2/docinsert.hxx8
-rw-r--r--sfx2/source/doc/docinsert.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/include/sfx2/docinsert.hxx b/include/sfx2/docinsert.hxx
index cefcf034f48e..beee0aff0138 100644
--- a/include/sfx2/docinsert.hxx
+++ b/include/sfx2/docinsert.hxx
@@ -38,8 +38,8 @@ namespace sfx2 {
class SFX2_DLLPUBLIC DocumentInserter
{
private:
- String m_sDocFactory;
- String m_sFilter;
+ OUString m_sDocFactory;
+ OUString m_sFilter;
Link m_aDialogClosedLink;
sal_Int64 const m_nDlgFlags;
@@ -52,7 +52,7 @@ private:
DECL_LINK(DialogClosedHdl, void *);
public:
- DocumentInserter(const String& rFactory,
+ DocumentInserter(const OUString& rFactory,
bool const bEnableMultiSelection = false);
~DocumentInserter();
@@ -61,7 +61,7 @@ public:
SfxMediumList* CreateMediumList();
inline ErrCode GetError() const { return m_nError; }
- inline String GetFilter() const { return m_sFilter; }
+ inline OUString GetFilter() const { return m_sFilter; }
};
} // namespace sfx2
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx
index a59b43506823..7ebf2b56a593 100644
--- a/sfx2/source/doc/docinsert.cxx
+++ b/sfx2/source/doc/docinsert.cxx
@@ -50,7 +50,7 @@ extern sal_uInt32 CheckPasswd_Impl( SfxObjectShell* pDoc, SfxItemPool &rPool, Sf
namespace sfx2 {
DocumentInserter::DocumentInserter(
- const String& rFactory, bool const bEnableMultiSelection) :
+ const OUString& rFactory, bool const bEnableMultiSelection) :
m_sDocFactory ( rFactory )
, m_nDlgFlags ( (bEnableMultiSelection)
@@ -92,7 +92,7 @@ SfxMedium* DocumentInserter::CreateMedium()
SFX_APP()->GetFilterMatcher().GetFilter4FilterName( m_sFilter ), m_pItemSet );
pMedium->UseInteractionHandler( sal_True );
SfxFilterMatcher* pMatcher = NULL;
- if ( m_sDocFactory.Len() )
+ if ( !m_sDocFactory.isEmpty() )
pMatcher = new SfxFilterMatcher( m_sDocFactory );
else
pMatcher = new SfxFilterMatcher();