ooo-build r12289 - in branches/ooo-build-2-4: . patches/src680
- From: pmladek svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r12289 - in branches/ooo-build-2-4: . patches/src680
- Date: Tue, 22 Apr 2008 17:54:39 +0100 (BST)
Author: pmladek
Date: Tue Apr 22 16:54:39 2008
New Revision: 12289
URL: http://svn.gnome.org/viewvc/ooo-build?rev=12289&view=rev
Log:
2008-04-22 Petr Mladek <pmladek suse cz>
* patches/src680/warning-string-comparsion-sw.diff: better fix to avoid
the warnings, i#86880
Modified:
branches/ooo-build-2-4/ChangeLog
branches/ooo-build-2-4/patches/src680/warning-string-comparsion-sw.diff
Modified: branches/ooo-build-2-4/patches/src680/warning-string-comparsion-sw.diff
==============================================================================
--- branches/ooo-build-2-4/patches/src680/warning-string-comparsion-sw.diff (original)
+++ branches/ooo-build-2-4/patches/src680/warning-string-comparsion-sw.diff Tue Apr 22 16:54:39 2008
@@ -1,11 +1,11 @@
---- sw/source/filter/html/htmlforw.cxx.old 2007-09-27 11:48:34.000000000 +0200
-+++ sw/source/filter/html/htmlforw.cxx 2008-03-07 13:29:49.000000000 +0100
+--- sw/source/filter/html/htmlforw.cxx.old 2008-04-22 17:16:17.000000000 +0200
++++ sw/source/filter/html/htmlforw.cxx 2008-04-22 17:27:00.000000000 +0200
@@ -1088,7 +1088,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Wri
sOut += sOptions;
- if( sHTML_IT_image == pType )
-+ if( !strcmp( sHTML_IT_image, pType ) )
++ if( (const sal_Char *)sHTML_IT_image == (const sal_Char *)pType )
{
aTmp = xPropSet->getPropertyValue(
OUString::createFromAscii( "ImageURL" ) );
@@ -14,7 +14,7 @@
// Wenn Zeichen-Objekte nicht absolut positioniert werden duerfen,
// das entsprechende Flag loeschen.
- nFrmOpts |= (sHTML_IT_image == pType
-+ nFrmOpts |= ( !strcmp ( sHTML_IT_image, pType )
++ nFrmOpts |= ((const sal_Char *)sHTML_IT_image == (const sal_Char *)pType
? HTML_FRMOPTS_IMG_CONTROL_CSS1
: HTML_FRMOPTS_CONTROL_CSS1);
}
@@ -24,9 +24,9 @@
{
- sal_Bool bEdit = sHTML_textarea == pTag || sHTML_IT_file == pType ||
- sHTML_IT_text == pType;
-+ sal_Bool bEdit = !strcmp ( sHTML_textarea, pTag ) ||
-+ !strcmp ( sHTML_IT_file, pType ) ||
-+ !strcmp (sHTML_IT_text, pType );
++ sal_Bool bEdit = (const sal_Char *)sHTML_textarea == (const sal_Char *)pTag ||
++ (const sal_Char *)sHTML_IT_file == (const sal_Char *)pType ||
++ (const sal_Char *)sHTML_IT_text == (const sal_Char *)pType;
SfxItemSet aItemSet( rHTMLWrt.pDoc->GetAttrPool(), RES_CHRATR_BEGIN,
RES_CHRATR_END );
@@ -35,7 +35,7 @@
rWrt.Strm() << '>';
- if( sHTML_select == pTag )
-+ if( !strcmp ( sHTML_select, pTag ) )
++ if( (const sal_Char *)sHTML_select == (const sal_Char *)pTag )
{
aTmp = xPropSet->getPropertyValue(
OUString::createFromAscii( "StringItemList" ) );
@@ -44,7 +44,7 @@
HTMLOutFuncs::Out_AsciiTag( rWrt.Strm(), sHTML_select, sal_False );
}
- else if( sHTML_textarea == pTag )
-+ else if( !strcmp ( sHTML_textarea, pTag ) )
++ else if( (const sal_Char *)sHTML_textarea == (const sal_Char *)pTag )
{
// In TextAreas duerfen keine zusaetzlichen Spaces oder LF exportiert
// werden!
@@ -53,19 +53,19 @@
HTMLOutFuncs::Out_AsciiTag( rWrt.Strm(), sHTML_textarea, sal_False );
}
- else if( sHTML_IT_checkbox == pType || sHTML_IT_radio == pType )
-+ else if( !strcmp ( sHTML_IT_checkbox, pType ) ||
-+ !strcmp ( sHTML_IT_radio, pType ) )
++ else if( (const sal_Char *)sHTML_IT_checkbox == (const sal_Char *)pType ||
++ (const sal_Char *)sHTML_IT_radio == (const sal_Char *)pType )
{
aTmp = xPropSet->getPropertyValue( OUString::createFromAscii("Label") );
if( aTmp.getValueType() == ::getCppuType((const OUString*)0) &&
---- sw/source/filter/rtf/rtfatr.cxx.old 2007-10-22 17:12:26.000000000 +0200
-+++ sw/source/filter/rtf/rtfatr.cxx 2008-03-07 13:34:55.000000000 +0100
+--- sw/source/filter/rtf/rtfatr.cxx.old 2008-04-22 17:16:30.000000000 +0200
++++ sw/source/filter/rtf/rtfatr.cxx 2008-04-22 17:32:08.000000000 +0200
@@ -1615,7 +1615,7 @@ void ExportPICT(const Size &rOrig, const
const SwCropGrf &rCr, const char *pBLIPType, const sal_uInt8 *pGraphicAry,
unsigned long nSize, SwRTFWriter &rWrt)
{
- bool bIsWMF = pBLIPType == sRTF_WMETAFILE ? true : false;
-+ bool bIsWMF = !strcmp(pBLIPType, sRTF_WMETAFILE) ? true : false;
++ bool bIsWMF = (const sal_Char *)pBLIPType == (const sal_Char *)sRTF_WMETAFILE ? true : false;
if (pBLIPType && nSize && pGraphicAry)
{
rWrt.Strm() << '{' << sRTF_PICT;
@@ -74,7 +74,7 @@
a wmf already then we don't need any such wrapping
*/
- bool bIsWMF = pBLIPType == sRTF_WMETAFILE ? true : false;
-+ bool bIsWMF = !strcmp(pBLIPType, sRTF_WMETAFILE) ? true : false;
++ bool bIsWMF = (const sal_Char *)pBLIPType == (const sal_Char *)sRTF_WMETAFILE ? true : false;
if (!bIsWMF)
OutComment(rRTFWrt, sRTF_SHPPICT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]