summaryrefslogtreecommitdiffstats
path: root/codemaker/source/javamaker/classfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker/source/javamaker/classfile.cxx')
-rw-r--r--codemaker/source/javamaker/classfile.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/codemaker/source/javamaker/classfile.cxx b/codemaker/source/javamaker/classfile.cxx
index 37858991edec..1df31aea6947 100644
--- a/codemaker/source/javamaker/classfile.cxx
+++ b/codemaker/source/javamaker/classfile.cxx
@@ -227,12 +227,12 @@ void ClassFile::Code::instrInvokevirtual(
void ClassFile::Code::instrLookupswitch(
Code const * defaultBlock,
- std::list< std::pair< sal_Int32, Code * > > const & blocks)
+ std::vector< std::pair< sal_Int32, Code * > > const & blocks)
{
// lookupswitch <0--3 byte pad> <defaultbyte1> <defaultbyte2> <defaultbyte3>
// <defaultbyte4> <npairs1> <npairs2> <npairs3> <npairs4>
// <match--offset pairs...>:
- std::list< std::pair< sal_Int32, Code * > >::size_type size = blocks.size();
+ std::vector< std::pair< sal_Int32, Code * > >::size_type size = blocks.size();
if (size > SAL_MAX_INT32) {
throw CannotDumpException("Lookup-switch too large for Java class file format");
}
@@ -312,7 +312,7 @@ void ClassFile::Code::instrSwap() {
void ClassFile::Code::instrTableswitch(
Code const * defaultBlock, sal_Int32 low,
- std::list< Code * > const & blocks)
+ std::vector< Code * > const & blocks)
{
// tableswitch <0--3 byte pad> <defaultbyte1> <defaultbyte2> <defaultbyte3>
// <defaultbyte4> <lowbyte1> <lowbyte2> <lowbyte3> <lowbyte4> <highbyte1>
@@ -323,7 +323,7 @@ void ClassFile::Code::instrTableswitch(
for (int i = 0; i < pad; ++i) {
appendU1(m_code, 0);
}
- std::list< Code * >::size_type size = blocks.size();
+ std::vector< Code * >::size_type size = blocks.size();
Position pos2 = pos1 + 1 + pad + 12 + size * 4; //FIXME: overflow
sal_uInt32 defaultOffset = static_cast< sal_uInt32 >(pos2 - pos1);
//FIXME: overflow