size some stringbuffer to prevent re-alloc
Change-Id: I385587a922c555c320a45dcc6d644315b72510e9 Reviewed-on: https://gerrit.libreoffice.org/81278 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
437dc68285
commit
c68be56c29
@@ -39,7 +39,7 @@ namespace codemaker { namespace java {
|
||||
OString translateUnoToJavaType(
|
||||
codemaker::UnoType::Sort sort, OString const & nucleus, bool referenceType)
|
||||
{
|
||||
OStringBuffer buf;
|
||||
OStringBuffer buf(128);
|
||||
if (sort <= codemaker::UnoType::Sort::Any) {
|
||||
OString const javaTypes[static_cast<int>(codemaker::UnoType::Sort::Any) + 1][2] = {
|
||||
{ "void", "java/lang/Void" },
|
||||
|
||||
Reference in New Issue
Block a user