fix previous commit:

do not call std::vector::vector(size_t).

Change-Id: I1e9b7d6acf375f1111f689b5c8ad86d624036301
This commit is contained in:
Michael Stahl 2012-06-25 16:56:14 +02:00
parent 639e700365
commit 10175932b3
2 changed files with 3 additions and 4 deletions

View file

@ -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,

View file

@ -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 );