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
3396c06c
Kaydet (Commit)
3396c06c
authored
Tem 10, 2012
tarafından
Christophe JAILLET
Kaydeden (comit)
Muthu Subramanian
Tem 11, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use rtl_zeroMemory in place of rtl_fillMemory(..., 0)
Change-Id: Idd83f6340d13a1d7111d0d5a7268f1aa8bf5c09e
üst
cfec62ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
dx_surfacebitmap.cxx
canvas/source/directx/dx_surfacebitmap.cxx
+7
-7
file.hxx
sal/inc/osl/file.hxx
+2
-2
qprostyle.cxx
sc/source/filter/qpro/qprostyle.cxx
+4
-4
No files found.
canvas/source/directx/dx_surfacebitmap.cxx
Dosyayı görüntüle @
3396c06c
...
@@ -83,7 +83,7 @@ namespace dxcanvas
...
@@ -83,7 +83,7 @@ namespace dxcanvas
sal_uInt8
*
DXColorBuffer
::
lock
()
const
sal_uInt8
*
DXColorBuffer
::
lock
()
const
{
{
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
rtl_
fillMemory
((
void
*
)
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
((
void
*
)
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
if
(
SUCCEEDED
(
mpSurface
->
Lock
(
NULL
,
&
aSurfaceDesc
,
dwFlags
,
NULL
)))
if
(
SUCCEEDED
(
mpSurface
->
Lock
(
NULL
,
&
aSurfaceDesc
,
dwFlags
,
NULL
)))
...
@@ -344,7 +344,7 @@ namespace dxcanvas
...
@@ -344,7 +344,7 @@ namespace dxcanvas
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
DDSURFACEDESC
aSurfaceDesc
;
DDSURFACEDESC
aSurfaceDesc
;
rtl_
fillMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
...
@@ -468,7 +468,7 @@ namespace dxcanvas
...
@@ -468,7 +468,7 @@ namespace dxcanvas
{
{
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
DDSURFACEDESC
aSurfaceDesc
;
DDSURFACEDESC
aSurfaceDesc
;
rtl_
fillMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
if
(
FAILED
(
mpSurface
->
Lock
(
NULL
,
if
(
FAILED
(
mpSurface
->
Lock
(
NULL
,
...
@@ -541,7 +541,7 @@ namespace dxcanvas
...
@@ -541,7 +541,7 @@ namespace dxcanvas
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
DDSURFACEDESC
aSurfaceDesc
;
DDSURFACEDESC
aSurfaceDesc
;
rtl_
fillMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
...
@@ -623,7 +623,7 @@ namespace dxcanvas
...
@@ -623,7 +623,7 @@ namespace dxcanvas
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
DDSURFACEDESC
aSurfaceDesc
;
DDSURFACEDESC
aSurfaceDesc
;
rtl_
fillMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_WRITEONLY
;
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_WRITEONLY
;
...
@@ -703,7 +703,7 @@ namespace dxcanvas
...
@@ -703,7 +703,7 @@ namespace dxcanvas
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
DDSURFACEDESC
aSurfaceDesc
;
DDSURFACEDESC
aSurfaceDesc
;
rtl_
fillMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_WRITEONLY
;
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_WRITEONLY
;
...
@@ -761,7 +761,7 @@ namespace dxcanvas
...
@@ -761,7 +761,7 @@ namespace dxcanvas
#if DIRECTX_VERSION < 0x0900
#if DIRECTX_VERSION < 0x0900
DDSURFACEDESC
aSurfaceDesc
;
DDSURFACEDESC
aSurfaceDesc
;
rtl_
fillMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
),
0
);
rtl_
zeroMemory
(
&
aSurfaceDesc
,
sizeof
(
DDSURFACEDESC
)
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
aSurfaceDesc
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
const
DWORD
dwFlags
=
DDLOCK_NOSYSLOCK
|
DDLOCK_SURFACEMEMORYPTR
|
DDLOCK_WAIT
|
DDLOCK_READONLY
;
...
...
sal/inc/osl/file.hxx
Dosyayı görüntüle @
3396c06c
...
@@ -444,7 +444,7 @@ public:
...
@@ -444,7 +444,7 @@ public:
VolumeInfo
(
sal_uInt32
nMask
)
:
_nMask
(
nMask
)
VolumeInfo
(
sal_uInt32
nMask
)
:
_nMask
(
nMask
)
{
{
_aInfo
.
uStructSize
=
sizeof
(
oslVolumeInfo
);
_aInfo
.
uStructSize
=
sizeof
(
oslVolumeInfo
);
rtl_
fillMemory
(
&
_aInfo
.
uValidFields
,
sizeof
(
oslVolumeInfo
)
-
sizeof
(
sal_uInt32
),
0
);
rtl_
zeroMemory
(
&
_aInfo
.
uValidFields
,
sizeof
(
oslVolumeInfo
)
-
sizeof
(
sal_uInt32
)
);
_aInfo
.
pDeviceHandle
=
&
_aDevice
.
_aHandle
;
_aInfo
.
pDeviceHandle
=
&
_aDevice
.
_aHandle
;
}
}
...
@@ -692,7 +692,7 @@ public:
...
@@ -692,7 +692,7 @@ public:
FileStatus
(
sal_uInt32
nMask
)
:
_nMask
(
nMask
)
FileStatus
(
sal_uInt32
nMask
)
:
_nMask
(
nMask
)
{
{
_aStatus
.
uStructSize
=
sizeof
(
oslFileStatus
);
_aStatus
.
uStructSize
=
sizeof
(
oslFileStatus
);
rtl_
fillMemory
(
&
_aStatus
.
uValidFields
,
sizeof
(
oslFileStatus
)
-
sizeof
(
sal_uInt32
),
0
);
rtl_
zeroMemory
(
&
_aStatus
.
uValidFields
,
sizeof
(
oslFileStatus
)
-
sizeof
(
sal_uInt32
)
);
}
}
/** Destructor.
/** Destructor.
...
...
sc/source/filter/qpro/qprostyle.cxx
Dosyayı görüntüle @
3396c06c
...
@@ -55,10 +55,10 @@
...
@@ -55,10 +55,10 @@
ScQProStyle
::
ScQProStyle
()
ScQProStyle
::
ScQProStyle
()
{
{
rtl_
fillMemory
(
maAlign
,
sizeof
(
maAlign
),
0
);
rtl_
zeroMemory
(
maAlign
,
sizeof
(
maAlign
)
);
rtl_
fillMemory
(
maFont
,
sizeof
(
maFont
),
0
);
rtl_
zeroMemory
(
maFont
,
sizeof
(
maFont
)
);
rtl_
fillMemory
(
maFontRecord
,
sizeof
(
maFontRecord
),
0
);
rtl_
zeroMemory
(
maFontRecord
,
sizeof
(
maFontRecord
)
);
rtl_
fillMemory
(
maFontHeight
,
sizeof
(
maFontHeight
),
0
);
rtl_
zeroMemory
(
maFontHeight
,
sizeof
(
maFontHeight
)
);
}
}
void
ScQProStyle
::
SetFormat
(
ScDocument
*
pDoc
,
sal_uInt8
nCol
,
sal_uInt16
nRow
,
SCTAB
nTab
,
sal_uInt16
nStyle
)
void
ScQProStyle
::
SetFormat
(
ScDocument
*
pDoc
,
sal_uInt8
nCol
,
sal_uInt16
nRow
,
SCTAB
nTab
,
sal_uInt16
nStyle
)
...
...
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