summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/dlgctrl.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-01-29 13:54:32 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-01-29 13:54:32 +0000
commit788e42e780b845310665e6b810e83c0ed26e373c (patch)
treecccd83be81a8bf305a2dff1f989f4b89a38caeaf /svx/source/dialog/dlgctrl.cxx
parentINTEGRATION: CWS impress116 (1.70.20); FILE MERGED (diff)
downloadcore-788e42e780b845310665e6b810e83c0ed26e373c.tar.gz
core-788e42e780b845310665e6b810e83c0ed26e373c.zip
INTEGRATION: CWS impress116 (1.28.84); FILE MERGED
2007/01/10 11:35:03 cl 1.28.84.1: #i73180# applied patch to fix valgrind warnings
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 8fff3fed0903..c79e95368f49 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dlgctrl.cxx,v $
*
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
- * last change: $Author: ihi $ $Date: 2006-11-14 13:15:26 $
+ * last change: $Author: rt $ $Date: 2007-01-29 14:54:32 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -915,8 +915,7 @@ SvxPixelCtl::SvxPixelCtl( Window* pParent, const ResId& rResId, USHORT nNumber )
nSquares = nLines * nLines;
pPixel = new USHORT[ nSquares ];
-
- // Reset(); <-- wird vom Dialog aufgerufen
+ rtl_zeroMemory(pPixel, nSquares * sizeof(USHORT));
}
/*************************************************************************
@@ -1069,9 +1068,8 @@ USHORT SvxPixelCtl::GetBitmapPixel( const USHORT nPixel )
void SvxPixelCtl::Reset()
{
- // Initialisierung des Arrays
- for( USHORT i = 0; i < nSquares; i++)
- *(pPixel + i) = 0;
+ // clear pixel area
+ rtl_zeroMemory(pPixel, nSquares * sizeof(USHORT));
Invalidate();
}