[poppler] qt4/src
Pino Toscano
pino at kemper.freedesktop.org
Mon Feb 11 11:21:43 PST 2008
qt4/src/poppler-page.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 5f8e2f9140ee2ede841700726b974768ec863672
Author: Pino Toscano <pino at kde.org>
Date: Mon Feb 11 20:16:44 2008 +0100
Use QVarLengthArray instead of relying on gcc-ism.
diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc
index 3453324..f02e033 100644
--- a/qt4/src/poppler-page.cc
+++ b/qt4/src/poppler-page.cc
@@ -19,6 +19,7 @@
#include <poppler-qt4.h>
#include <QtCore/QMap>
+#include <QtCore/QVarLengthArray>
#include <QtGui/QImage>
#include <QtGui/QPainter>
@@ -1193,7 +1194,7 @@ QList<Annotation*> Page::annotations() const
if ( !resolveRevList.isEmpty() )
{
// append children to parents
- int excludeIDs[ resolveRevList.count() ]; // can't even reach this size
+ QVarLengthArray< int > excludeIDs( resolveRevList.count() ); // can't even reach this size
int excludeIndex = 0; // index in excludeIDs array
QLinkedList< ResolveRevision >::iterator it = resolveRevList.begin(), end = resolveRevList.end();
for ( ; it != end; ++it )
More information about the poppler
mailing list