summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-05-08 19:32:50 +0200
committerMichael Stahl <mstahl@redhat.com>2012-05-09 08:53:01 +0200
commit2d7e993f6a3acd01c5287497196565b8555416e6 (patch)
tree5add079e6e9f78b8891daa43cc30e50ba2d785aa /sw
parenta56c8a0dc2ed44d76b1d9a0de6307cf968796b9f (diff)
fix std::vector::vector(size_t) in previous commit
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/unsort.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/undo/unsort.cxx b/sw/source/core/undo/unsort.cxx
index 3d885d3ae5a5..8712383b2c3d 100644
--- a/sw/source/core/undo/unsort.cxx
+++ b/sw/source/core/undo/unsort.cxx
@@ -139,7 +139,7 @@ void SwUndoSort::UndoImpl(::sw::UndoRedoContext & rContext)
// fuer die sorted Positions einen Index anlegen.
// JP 25.11.97: Die IndexList muss aber nach SourcePosition
// aufsteigend sortiert aufgebaut werden
- SwUndoSortList aIdxList( (sal_uInt8)aSortList.size() );
+ SwUndoSortList aIdxList;
sal_uInt16 i;
for( i = 0; i < aSortList.size(); ++i)
@@ -218,7 +218,7 @@ void SwUndoSort::RedoImpl(::sw::UndoRedoContext & rContext)
SetPaM(rPam);
RemoveIdxFromRange(rPam, true);
- SwUndoSortList aIdxList( (sal_uInt8)aSortList.size() );
+ SwUndoSortList aIdxList;
sal_uInt16 i;
for( i = 0; i < aSortList.size(); ++i)