From 10175932b37e4d09397dc877f0423fdadc3d3918 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 25 Jun 2012 16:56:14 +0200 Subject: [PATCH] fix previous commit: do not call std::vector::vector(size_t). Change-Id: I1e9b7d6acf375f1111f689b5c8ad86d624036301 --- sw/inc/swunohelper.hxx | 5 ++--- 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 #include #include "swdllapi.h" -#include #include @@ -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& 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 aFoundGroupNames; std::vector aFiles; - std::vector aDateTimeArr( 16 ); + std::vector aDateTimeArr; SWUnoHelper::UCB_GetFileListOfFolder( rPathArr[nPath], aFiles, &sExt, &aDateTimeArr );