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
06e0aff6
Kaydet (Commit)
06e0aff6
authored
Eyl 11, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
can return a ref, not a pointer, and make local static instead of global leak
üst
90e9a26a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
psputil.cxx
vcl/unx/generic/printergfx/psputil.cxx
+11
-11
psputil.hxx
vcl/unx/generic/printergfx/psputil.hxx
+1
-1
text_gfx.cxx
vcl/unx/generic/printergfx/text_gfx.cxx
+2
-2
No files found.
vcl/unx/generic/printergfx/psputil.cxx
Dosyayı görüntüle @
06e0aff6
...
...
@@ -28,13 +28,11 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
#include <string.h>
#include <tools/debug.hxx>
#include <rtl/instance.hxx>
#include "psputil.hxx"
#include "tools/debug.hxx"
namespace
psp
{
/*
...
...
@@ -254,15 +252,17 @@ ConverterFactory::Convert (const sal_Unicode *pText, int nTextLen,
return
nSize
;
}
ConverterFactory
*
GetConverterFactory
()
namespace
{
static
ConverterFactory
*
pCvt
=
NULL
;
if
(
pCvt
==
NULL
)
pCvt
=
new
ConverterFactory
;
class
theConverterFactory
:
public
rtl
::
Static
<
ConverterFactory
,
theConverterFactory
>
{
};
}
return
pCvt
;
ConverterFactory
&
GetConverterFactory
()
{
return
theConverterFactory
::
get
();
}
...
...
vcl/unx/generic/printergfx/psputil.hxx
Dosyayı görüntüle @
06e0aff6
...
...
@@ -71,7 +71,7 @@ private:
std
::
map
<
rtl_TextEncoding
,
rtl_UnicodeToTextConverter
>
m_aConverters
;
};
ConverterFactory
*
GetConverterFactory
();
ConverterFactory
&
GetConverterFactory
();
}
/* namespace psp */
...
...
vcl/unx/generic/printergfx/text_gfx.cxx
Dosyayı görüntüle @
06e0aff6
...
...
@@ -583,8 +583,8 @@ PrinterGfx::LicenseWarning(const Point& rPoint, const sal_Unicode* pStr,
sal_Size
nSize
=
4
*
nLen
;
sal_uChar
*
pBuffer
=
(
sal_uChar
*
)
alloca
(
nSize
*
sizeof
(
sal_uChar
));
ConverterFactory
*
p
Cvt
=
GetConverterFactory
();
nSize
=
pCvt
->
Convert
(
pStr
,
nLen
,
pBuffer
,
nSize
,
RTL_TEXTENCODING_ISO_8859_1
);
ConverterFactory
&
r
Cvt
=
GetConverterFactory
();
nSize
=
rCvt
.
Convert
(
pStr
,
nLen
,
pBuffer
,
nSize
,
RTL_TEXTENCODING_ISO_8859_1
);
PSMoveTo
(
rPoint
);
PSShowText
(
pBuffer
,
nLen
,
nSize
,
pDeltaArray
);
...
...
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