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
6d768ffb
Kaydet (Commit)
6d768ffb
authored
Eki 08, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
307263ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
cvtsvm.cxx
vcl/source/gdi/cvtsvm.cxx
+15
-11
window.cxx
vcl/source/window/window.cxx
+6
-5
No files found.
vcl/source/gdi/cvtsvm.cxx
Dosyayı görüntüle @
6d768ffb
...
...
@@ -249,8 +249,9 @@ void ImplWriteFont( SvStream& rOStm, const Font& rFont,
char
aName
[
32
];
short
nWeight
;
ByteString
aByteName
(
rFont
.
GetName
(),
rOStm
.
GetStreamCharSet
()
);
strncpy
(
aName
,
aByteName
.
GetBuffer
(),
32
);
rtl
::
OString
aByteName
(
rtl
::
OUStringToOString
(
rFont
.
GetName
(),
rOStm
.
GetStreamCharSet
()));
strncpy
(
aName
,
aByteName
.
getStr
(),
32
);
switch
(
rFont
.
GetWeight
()
)
{
...
...
@@ -1718,8 +1719,9 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
{
MetaTextAction
*
pAct
=
(
MetaTextAction
*
)
pAction
;
String
aUniText
(
pAct
->
GetText
()
);
ByteString
aText
(
aUniText
,
rActualCharSet
);
const
sal_uLong
nStrLen
=
aText
.
Len
();
rtl
::
OString
aText
(
rtl
::
OUStringToOString
(
aUniText
,
rActualCharSet
));
const
sal_uLong
nStrLen
=
aText
.
getLength
();
if
(
ImplWriteUnicodeComment
(
rOStm
,
aUniText
)
)
nCount
++
;
...
...
@@ -1730,7 +1732,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm
<<
(
sal_Int32
)
pAct
->
GetIndex
();
rOStm
<<
(
sal_Int32
)
pAct
->
GetLen
();
rOStm
<<
(
sal_Int32
)
nStrLen
;
rOStm
.
Write
(
aText
.
GetBuffe
r
(),
nStrLen
+
1
);
rOStm
.
Write
(
aText
.
getSt
r
(),
nStrLen
+
1
);
nCount
++
;
}
break
;
...
...
@@ -1738,11 +1740,12 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case
(
META_TEXTARRAY_ACTION
):
{
MetaTextArrayAction
*
pAct
=
(
MetaTextArrayAction
*
)
pAction
;
ByteString
aText
(
pAct
->
GetText
(),
rActualCharSet
);
rtl
::
OString
aText
(
rtl
::
OUStringToOString
(
pAct
->
GetText
(),
rActualCharSet
));
String
aUniText
(
pAct
->
GetText
(),
pAct
->
GetIndex
(),
pAct
->
GetLen
()
);
sal_uLong
nAryLen
;
sal_uLong
nLen
=
pAct
->
GetLen
();
const
sal_uLong
nTextLen
=
aText
.
Len
();
const
sal_uLong
nTextLen
=
aText
.
getLength
();
sal_Int32
*
pDXArray
=
pAct
->
GetDXArray
();
if
(
ImplWriteUnicodeComment
(
rOStm
,
aUniText
)
)
...
...
@@ -1768,7 +1771,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm
<<
(
sal_Int32
)
nLen
;
rOStm
<<
(
sal_Int32
)
nLen
;
rOStm
<<
(
sal_Int32
)
nAryLen
;
rOStm
.
Write
(
aText
.
GetBuffe
r
()
+
pAct
->
GetIndex
(),
nLen
+
1
);
rOStm
.
Write
(
aText
.
getSt
r
()
+
pAct
->
GetIndex
(),
nLen
+
1
);
for
(
sal_uLong
n
=
0UL
;
n
<
nAryLen
;
n
++
)
rOStm
<<
(
sal_Int32
)
pDXArray
[
n
];
...
...
@@ -1781,8 +1784,9 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
{
MetaStretchTextAction
*
pAct
=
(
MetaStretchTextAction
*
)
pAction
;
String
aUniText
(
pAct
->
GetText
()
);
ByteString
aText
(
aUniText
,
rActualCharSet
);
const
sal_uLong
nStrLen
=
aText
.
Len
();
rtl
::
OString
aText
(
rtl
::
OUStringToOString
(
aUniText
,
rActualCharSet
));
const
sal_uLong
nStrLen
=
aText
.
getLength
();
if
(
ImplWriteUnicodeComment
(
rOStm
,
aUniText
)
)
nCount
++
;
...
...
@@ -1794,7 +1798,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm
<<
(
sal_Int32
)
pAct
->
GetLen
();
rOStm
<<
(
sal_Int32
)
nStrLen
;
rOStm
<<
(
sal_Int32
)
pAct
->
GetWidth
();
rOStm
.
Write
(
aText
.
GetBuffe
r
(),
nStrLen
+
1
);
rOStm
.
Write
(
aText
.
getSt
r
(),
nStrLen
+
1
);
nCount
++
;
}
break
;
...
...
vcl/source/window/window.cxx
Dosyayı görüntüle @
6d768ffb
...
...
@@ -4486,11 +4486,12 @@ Window::~Window()
// #122232#, this must not happen and is an application bug ! but we try some cleanup to hopefully avoid crashes, see below
bHasFocussedChild = sal_True;
#if OSL_DEBUG_LEVEL > 0
ByteString aTempStr( "Window (" );
aTempStr += ByteString( GetText(), RTL_TEXTENCODING_UTF8 );
aTempStr += ") with focussed child window destroyed ! THIS WILL LEAD TO CRASHES AND MUST BE FIXED !";
OSL_FAIL( aTempStr.GetBuffer() );
GetpApp()->Abort( String( aTempStr, RTL_TEXTENCODING_UTF8 ) ); // abort in non-pro version, this must be fixed!
rtl::OStringBuffer aTempStr("Window (");
aTempStr.append(rtl::OUStringToOString(GetText(),
RTL_TEXTENCODING_UTF8)).
append(") with focussed child window destroyed ! THIS WILL LEAD TO CRASHES AND MUST BE FIXED !");
OSL_FAIL( aTempStr.getStr() );
GetpApp()->Abort(rtl::OStringToOUString(aTempStr.makeStringAndClear(), RTL_TEXTENCODING_UTF8 )); // abort in non-pro version, this must be fixed!
#endif
}
...
...
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