[Libreoffice-commits] .: sfx2/inc sfx2/source
Joseph Powers
jpowers at kemper.freedesktop.org
Fri Dec 31 13:02:12 PST 2010
sfx2/inc/docinsert.hxx | 6 ++++--
sfx2/inc/sfx2/app.hxx | 6 ++++--
sfx2/inc/sfx2/docfile.hxx | 9 ++++-----
sfx2/source/doc/docinsert.cxx | 4 ++--
4 files changed, 14 insertions(+), 11 deletions(-)
New commits:
commit c1a5082b207742c028609a7906bd33cdaf01a809
Author: Joseph Powers <jpowers27 at cox.net>
Date: Fri Dec 31 13:02:04 2010 -0800
Remove DECLARE_LIST( SfxMediumList, SfxMedium* )
diff --git a/sfx2/inc/docinsert.hxx b/sfx2/inc/docinsert.hxx
index 8541b3a..40969a7 100644
--- a/sfx2/inc/docinsert.hxx
+++ b/sfx2/inc/docinsert.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,15 +32,17 @@
#include <tools/errcode.hxx>
#include <tools/link.hxx>
#include <tools/string.hxx>
+#include <vector>
#include "sfx2/dllapi.h"
namespace sfx2 { class FileDialogHelper; }
class SfxMedium;
-class SfxMediumList;
class SfxItemSet;
class SvStringsDtor;
+typedef ::std::vector< SfxMedium* > SfxMediumList;
+
// ============================================================================
namespace sfx2 {
diff --git a/sfx2/inc/sfx2/app.hxx b/sfx2/inc/sfx2/app.hxx
index 09d9a42..b6cfd0e 100644
--- a/sfx2/inc/sfx2/app.hxx
+++ b/sfx2/inc/sfx2/app.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,6 +45,7 @@
#include <vcl/svapp.hxx>
#include <sfx2/shell.hxx>
+#include <vector>
class Timer;
class ApplicationEvent;
@@ -68,7 +69,6 @@ class SfxEventHint;
class SfxItemSet;
class SfxMacroConfig;
class SfxMedium;
-class SfxMediumList;
class SfxMenuCtrlFactArr_Impl;
class SfxNewFileDialog;
class SfxObjectShell;
@@ -100,6 +100,8 @@ struct SfxTbxCtrlFactory;
class SimpleResMgr;
class ModalDialog;
+typedef ::std::vector< SfxMedium* > SfxMediumList;
+
namespace sfx2
{
class SvLinkSource;
diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx
index 57293a0..64145b6 100644
--- a/sfx2/inc/sfx2/docfile.hxx
+++ b/sfx2/inc/sfx2/docfile.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,6 +52,8 @@
#include <cppuhelper/weak.hxx>
#include <ucbhelper/content.hxx>
+#include <vector>
+
class SvKeyValueIterator;
class SfxObjectFactory;
class SfxFilter;
@@ -334,10 +336,7 @@ public:
SV_DECL_IMPL_REF( SfxMedium )
SV_DECL_COMPAT_WEAK( SfxMedium )
-#ifndef SFXMEDIUM_LIST
-#define SFXMEDIUM_LIST
-DECLARE_LIST( SfxMediumList, SfxMedium* )
-#endif
+typedef ::std::vector< SfxMedium* > SfxMediumList;
#endif
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx
index 6456b3a..7850670 100644
--- a/sfx2/source/doc/docinsert.cxx
+++ b/sfx2/source/doc/docinsert.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -162,7 +162,7 @@ SfxMediumList* DocumentInserter::CreateMediumList()
DELETEZ( pMedium );
if( pMedium && CheckPasswd_Impl( 0, SFX_APP()->GetPool(), pMedium ) != ERRCODE_ABORT )
- pMediumList->Insert( pMedium );
+ pMediumList->push_back( pMedium );
else
delete pMedium;
}
More information about the Libreoffice-commits
mailing list