diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2015-05-23 14:32:22 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 08:13:35 +0000 |
commit | 6a4a55d5f48e52dd4a5094028d729ac4cc9d766e (patch) | |
tree | ec74c881092a920fae623f423566a9039626d2e0 /basic/source/runtime/methods.cxx | |
parent | b255913e412a7894928f92e29d6445bc412a87db (diff) |
BASIC: User std::unique_ptr in basic runtime
Change-Id: Iac7efdad78cf2f827cbddbc671dd0d1b5ae1d467
Reviewed-on: https://gerrit.libreoffice.org/15874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index a2bb3467e015..ea1d8c207c00 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -2137,7 +2137,7 @@ RTLFUNC(DateValue) else { sal_uInt32 n; // Dummy - SbiInstance::PrepareNumberFormatter( pFormatter, n, n, n ); + pFormatter = SbiInstance::PrepareNumberFormatter( n, n, n ); } sal_uInt32 nIndex = 0; @@ -2205,7 +2205,7 @@ RTLFUNC(TimeValue) else { sal_uInt32 n; - SbiInstance::PrepareNumberFormatter( pFormatter, n, n, n ); + pFormatter = SbiInstance::PrepareNumberFormatter( n, n, n ); } sal_uInt32 nIndex = 0; @@ -2428,7 +2428,7 @@ RTLFUNC(Time) else { sal_uInt32 n; // Dummy - SbiInstance::PrepareNumberFormatter( pFormatter, n, nIndex, n ); + pFormatter = SbiInstance::PrepareNumberFormatter( n, nIndex, n ); } pFormatter->GetOutputString( nDays, nIndex, aRes, &pCol ); @@ -2485,7 +2485,7 @@ RTLFUNC(Date) else { sal_uInt32 n; - SbiInstance::PrepareNumberFormatter( pFormatter, nIndex, n, n ); + pFormatter = SbiInstance::PrepareNumberFormatter( nIndex, n, n ); } pFormatter->GetOutputString( nDays, nIndex, aRes, &pCol ); @@ -3274,7 +3274,7 @@ RTLFUNC(FileDateTime) else { sal_uInt32 n; - SbiInstance::PrepareNumberFormatter( pFormatter, n, n, nIndex ); + pFormatter = SbiInstance::PrepareNumberFormatter( n, n, nIndex ); } OUString aRes; |