summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorLeMoyne Castle <lemoyne.castle@gmail.com>2015-03-06 01:15:12 -0700
committerTor Lillqvist <tml@collabora.com>2015-03-07 05:57:20 +0000
commit3b585737ff6bda7d28dd293465f5061ad5006f6e (patch)
tree897c10850ba9cecdf91afa4c8cf138dfacfdb9f1 /basic
parent333f8a76341f5b4921e89012d133007503e49612 (diff)
convert error number to string
BASIC error type was printing as "Error "+ odd char instead of "Error " + error number Change-Id: I7407833626d6117f932cc29c6dab1a8a64c50b5a Reviewed-on: https://gerrit.libreoffice.org/14776 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxstr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx
index ded077a6c4fd..bfd2b6223f79 100644
--- a/basic/source/sbx/sbxstr.cxx
+++ b/basic/source/sbx/sbxstr.cxx
@@ -102,7 +102,7 @@ OUString ImpGetString( const SbxValues* p )
case SbxERROR:
// Here the String "Error n" is generated
aRes = SbxRes( STRING_ERRORMSG );
- aRes += OUString( p->nUShort ); break;
+ aRes += OUString::number(p->nUShort); break;
case SbxDATE:
ImpPutDate( &aTmp, p->nDouble ); break;