Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3f82d94b
Kaydet (Commit)
3f82d94b
authored
Nis 08, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String::CreateFromInt32->rtl::OUString::valueOf
üst
0c38c3e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
basmgr.cxx
basic/source/basmgr/basmgr.cxx
+2
-2
sb.cxx
basic/source/classes/sb.cxx
+7
-10
sbxscan.cxx
basic/source/sbx/sbxscan.cxx
+3
-3
No files found.
basic/source/basmgr/basmgr.cxx
Dosyayı görüntüle @
3f82d94b
...
...
@@ -1525,8 +1525,8 @@ sal_Bool BasicManager::LoadLib( sal_uInt16 nLib )
}
else
{
StringErrorInfo
*
pErrInf
=
new
StringErrorInfo
(
ERRCODE_BASMGR_LIBLOAD
,
String
(),
ERRCODE_BUTTON_OK
);
aErrors
.
push_back
(
BasicError
(
*
pErrInf
,
BASERR_REASON_LIBNOTFOUND
,
String
::
CreateFromInt32
(
nLib
)));
StringErrorInfo
*
pErrInf
=
new
StringErrorInfo
(
ERRCODE_BASMGR_LIBLOAD
,
rtl
::
OU
String
(),
ERRCODE_BUTTON_OK
);
aErrors
.
push_back
(
BasicError
(
*
pErrInf
,
BASERR_REASON_LIBNOTFOUND
,
rtl
::
OUString
::
valueOf
(
static_cast
<
sal_Int32
>
(
nLib
)
)));
}
return
bDone
;
}
...
...
basic/source/classes/sb.cxx
Dosyayı görüntüle @
3f82d94b
...
...
@@ -1601,14 +1601,12 @@ void StarBASIC::MakeErrorText( SbError nId, const ::rtl::OUString& aMsg )
}
else
if
(
nOldID
!=
0
)
{
String
aStdMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"Fehler "
)
);
aStdMsg
+=
String
::
CreateFromInt32
(
nOldID
);
aStdMsg
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
": Kein Fehlertext verfuegbar!"
)
);
GetSbData
()
->
aErrMsg
=
aStdMsg
;
rtl
::
OUStringBuffer
aStdMsg
;
aStdMsg
.
append
(
"Fehler "
).
append
(
static_cast
<
sal_Int32
>
(
nOldID
)).
append
(
": Kein Fehlertext verfuegbar!"
);
GetSbData
()
->
aErrMsg
=
aStdMsg
.
makeStringAndClear
();
}
else
GetSbData
()
->
aErrMsg
=
String
::
EmptyString
();
}
sal_Bool
StarBASIC
::
CError
...
...
@@ -1672,11 +1670,10 @@ sal_Bool StarBASIC::RTError( SbError code, const String& rMsg, sal_uInt16 l, sal
// like vba ( adds an error number etc )
if
(
SbiRuntime
::
isVBAEnabled
()
&&
(
code
==
SbERR_BASIC_COMPAT
)
)
{
String
aTmp
=
'\''
;
aTmp
+=
String
::
CreateFromInt32
(
SbxErrObject
::
getUnoErrObject
()
->
getNumber
()
);
aTmp
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\'\n
"
)
);
aTmp
+=
GetSbData
()
->
aErrMsg
.
Len
()
?
GetSbData
()
->
aErrMsg
:
rMsg
;
code
=
(
sal_uIntPtr
)
*
new
StringErrorInfo
(
code
,
aTmp
);
rtl
::
OUStringBuffer
aTmp
;
aTmp
.
append
(
'\''
).
append
(
SbxErrObject
::
getUnoErrObject
()
->
getNumber
())
.
append
(
"
\'\n
"
).
append
(
GetSbData
()
->
aErrMsg
.
Len
()
?
GetSbData
()
->
aErrMsg
:
rMsg
);
code
=
(
sal_uIntPtr
)
*
new
StringErrorInfo
(
code
,
aTmp
.
makeStringAndClear
()
);
}
else
code
=
(
sal_uIntPtr
)
*
new
StringErrorInfo
(
code
,
String
(
rMsg
)
);
...
...
basic/source/sbx/sbxscan.cxx
Dosyayı görüntüle @
3f82d94b
...
...
@@ -800,13 +800,13 @@ void SbxValue::Format( XubString& rRes, const XubString* pFmt ) const
}
else
{
rRes
=
String
::
CreateFromInt32
(
nMin
);
rRes
=
rtl
::
OUString
::
valueOf
(
nMin
);
}
}
else
if
(
aFmtStr
.
EqualsIgnoreCaseAscii
(
VBAFORMAT_W
))
{
sal_Int32
nWeekDay
=
implGetWeekDay
(
nNumber
);
rRes
=
String
::
CreateFromInt32
(
nWeekDay
);
rRes
=
rtl
::
OUString
::
valueOf
(
nWeekDay
);
}
else
if
(
aFmtStr
.
EqualsIgnoreCaseAscii
(
VBAFORMAT_Y
))
{
...
...
@@ -814,7 +814,7 @@ void SbxValue::Format( XubString& rRes, const XubString* pFmt ) const
double
dBaseDate
;
implDateSerial
(
nYear
,
1
,
1
,
dBaseDate
);
sal_Int32
nYear32
=
1
+
sal_Int32
(
nNumber
-
dBaseDate
);
rRes
=
String
::
CreateFromInt32
(
nYear32
);
rRes
=
rtl
::
OUString
::
valueOf
(
nYear32
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment