diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-06-25 16:56:14 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-25 20:13:14 +0200 |
commit | 10175932b37e4d09397dc877f0423fdadc3d3918 (patch) | |
tree | 0b63227f9641b20f70db44fd9a63ce8a4b735d4b | |
parent | 639e700365a3c647dfc424100dc6958d06836106 (diff) |
fix previous commit:
do not call std::vector::vector(size_t).
Change-Id: I1e9b7d6acf375f1111f689b5c8ad86d624036301
-rw-r--r-- | sw/inc/swunohelper.hxx | 5 | ||||
-rw-r--r-- | sw/source/ui/utlui/gloslst.cxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/inc/swunohelper.hxx b/sw/inc/swunohelper.hxx index f49cee9cb1a2..238f8285fbaf 100644 --- a/sw/inc/swunohelper.hxx +++ b/sw/inc/swunohelper.hxx @@ -31,7 +31,6 @@ #include <tools/solar.h> #include <sal/types.h> #include "swdllapi.h" -#include <tools/datetime.hxx> #include <vector> @@ -42,7 +41,7 @@ namespace com { namespace sun { namespace star { }}} class String; -class SvPtrarr; +class DateTime; namespace SWUnoHelper { @@ -68,7 +67,7 @@ SW_DLLPUBLIC sal_Bool UCB_IsReadOnlyFileName( const String& rURL ); // get a list of files from the folder of the URL // options: pExtension = 0 -> all, else this specific extension // pDateTime != 0 -> returns also the modified date/time of - // the files in a SvPtrarr --> + // the files in a vector --> // !! objects must be deleted from the caller!! bool UCB_GetFileListOfFolder( const String& rURL, std::vector<String*>& rList, diff --git a/sw/source/ui/utlui/gloslst.cxx b/sw/source/ui/utlui/gloslst.cxx index c4d13a54aaed..3d1cfe3b8496 100644 --- a/sw/source/ui/utlui/gloslst.cxx +++ b/sw/source/ui/utlui/gloslst.cxx @@ -304,7 +304,7 @@ void SwGlossaryList::Update() { std::vector<String> aFoundGroupNames; std::vector<String*> aFiles; - std::vector<DateTime*> aDateTimeArr( 16 ); + std::vector<DateTime*> aDateTimeArr; SWUnoHelper::UCB_GetFileListOfFolder( rPathArr[nPath], aFiles, &sExt, &aDateTimeArr ); |