diff options
author | Christian Lohmaier <lohmaier+libreoffice@googlemail.com> | 2011-01-18 15:28:00 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-18 15:32:22 -0500 |
commit | 2364ad704aa418b0944d9f12a11ce0d266554ac5 (patch) | |
tree | dc458f16f1a00f2326f97cbc75c888fd4c7a6f78 | |
parent | ce13ac6030d82300d629c88a7aad3e94a4b70532 (diff) |
WaE patch for filter
Signed-off-by: Kohei Yoshida <kyoshida@novell.com>
-rw-r--r-- | lotuswordpro/source/filter/lwpobjid.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpoleobject.cxx | 19 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpoleobject.hxx | 1 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpparastyle.cxx | 2 | ||||
-rw-r--r-- | writerperfect/source/filter/DocumentCollector.cxx | 2 |
5 files changed, 3 insertions, 23 deletions
diff --git a/lotuswordpro/source/filter/lwpobjid.cxx b/lotuswordpro/source/filter/lwpobjid.cxx index 8451744aef08..c445bfcfd3ca 100644 --- a/lotuswordpro/source/filter/lwpobjid.cxx +++ b/lotuswordpro/source/filter/lwpobjid.cxx @@ -235,7 +235,7 @@ LwpObject* LwpObjectID::obj(VO_TYPE tag) const LwpObject* pObj = pObjMgr->QueryObject(*this); if( tag!=VO_INVALID && (pObj) ) { - if(tag!=pObj->GetTag()) + if(static_cast<sal_uInt32>(tag) != pObj->GetTag()) { pObj=NULL; } diff --git a/lotuswordpro/source/filter/lwpoleobject.cxx b/lotuswordpro/source/filter/lwpoleobject.cxx index b773d0b53eca..d17eef9e1bb0 100644 --- a/lotuswordpro/source/filter/lwpoleobject.cxx +++ b/lotuswordpro/source/filter/lwpoleobject.cxx @@ -251,26 +251,7 @@ void LwpOleObject::Read() } } -/** - * @descr: Construct ole-storage name by ObjectID - * @param: pObjName - input&output string of object name, spaces allocated outside and at least length should be MAX_STREAMORSTORAGENAME - * @return: None - * @date: 2/22/2005 - */ -void LwpOleObject::GetChildStorageName(char *pObjName) -{ - /*LwpObjectFactory * pObjMgr = LwpObjectFactory::Instance(); - LwpIndexManager * pIdxMgr = pObjMgr->GetIndexManager(); - sal_uInt32 nLowID = pIdxMgr->GetObjTime(static_cast<sal_uInt16>(GetObjectID()->GetLow()));*/ - - char sName[MAX_STREAMORSTORAGENAME]; - //LwpObjectID ID(nLowID, GetObjectID()->GetHigh()); - sprintf( sName, "%s%X,%X", "Ole", - GetObjectID()->GetHigh(), GetObjectID()->GetLow()); - strcpy( pObjName, sName); - return; -} /** * @descr: Parse VO_OLEOBJECT and dump to XML stream only on WIN32 platform * @param: pOutputStream - stream to dump OLE object diff --git a/lotuswordpro/source/filter/lwpoleobject.hxx b/lotuswordpro/source/filter/lwpoleobject.hxx index d391795121cd..d330cd3fbd9a 100644 --- a/lotuswordpro/source/filter/lwpoleobject.hxx +++ b/lotuswordpro/source/filter/lwpoleobject.hxx @@ -129,7 +129,6 @@ public: virtual void RegisterStyle(); void GetGrafOrgSize(double& rWidth, double& rHeight) ; private: - void GetChildStorageName(char *pObjName); Rectangle GetOLEObjectSize( SotStorage * pStor ) const; sal_uInt16 cPersistentFlags; diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx index 89df3b19440b..0e3dcdec32fb 100644 --- a/lotuswordpro/source/filter/lwpparastyle.cxx +++ b/lotuswordpro/source/filter/lwpparastyle.cxx @@ -657,7 +657,7 @@ void LwpParaStyle::ApplyTab(XFParaStyle *pParaStyle, LwpTabOverride *pTabOverRid double fLen = LwpTools::ConvertFromUnitsToMetric(nPos) - dMarginLeft; //get leader type - sal_Unicode cLeader; + sal_Unicode cLeader = 0x00; LwpTab::LeaderType leader= pTab->GetLeaderType(); switch(leader) { diff --git a/writerperfect/source/filter/DocumentCollector.cxx b/writerperfect/source/filter/DocumentCollector.cxx index 39aa1dc9f991..5f8633be5179 100644 --- a/writerperfect/source/filter/DocumentCollector.cxx +++ b/writerperfect/source/filter/DocumentCollector.cxx @@ -655,7 +655,7 @@ void DocumentCollector::defineOrderedListLevel(const WPXPropertyList &propList) // is starting a new list at level 1 (and only level 1) if (pOrderedListStyle == NULL || pOrderedListStyle->getListID() != id || (propList["libwpd:level"] && propList["libwpd:level"]->getInt()==1 && - (propList["text:start-value"] && propList["text:start-value"]->getInt() != (mWriterListStates.top().miLastListNumber+1)))) + (propList["text:start-value"] && propList["text:start-value"]->getInt() != static_cast<int>(mWriterListStates.top().miLastListNumber+1)))) { WRITER_DEBUG_MSG(("Attempting to create a new ordered list style (listid: %i)\n", id)); WPXString sName; |