sw: fix loplugin warnings
Change-Id: I090a51c112c960b8cc9b208bc7378a5aa3754552
This commit is contained in:
parent
b24f82fda9
commit
8275c8fc33
@ -182,6 +182,7 @@ certain functionality.
|
||||
@section Writer
|
||||
|
||||
@li @c sw
|
||||
@li @c sw.level2
|
||||
@li @c sw.core - Writer core
|
||||
@li @c sw.rtf - .rtf export filter
|
||||
@li @c sw.uno - Writer UNO interfaces
|
||||
|
@ -527,7 +527,6 @@ void Test::testFdo48356()
|
||||
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
|
||||
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(), uno::UNO_QUERY);
|
||||
uno::Reference<container::XEnumeration> xParaEnum = xParaEnumAccess->createEnumeration();
|
||||
OUStringBuffer aBuf;
|
||||
int i = 0;
|
||||
while (xParaEnum->hasMoreElements())
|
||||
{
|
||||
|
@ -1377,7 +1377,7 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
|
||||
rCntntAtPos.eCntntAtPos = SwContentAtPos::SW_TABLEBOXVALUE;
|
||||
else
|
||||
#endif
|
||||
((SwTblBoxFormula*)pItem)->PtrToBoxNm( &pTblNd->GetTable() );
|
||||
((SwTblBoxFormula*)pItem)->PtrToBoxNm( &pTblNd->GetTable() );
|
||||
|
||||
bRet = sal_True;
|
||||
if( bSetCrsr )
|
||||
|
@ -873,7 +873,7 @@ void SwXStyleFamily::insertByName(const OUString& rName, const uno::Any& rElemen
|
||||
#if OSL_DEBUG_LEVEL > 1
|
||||
SfxStyleSheetBase& rNewBase =
|
||||
#endif
|
||||
pBasePool->Make(sStyleName, eFamily, nMask);
|
||||
pBasePool->Make(sStyleName, eFamily, nMask);
|
||||
pNewStyle->SetDoc(pDocShell->GetDoc(), pBasePool);
|
||||
pNewStyle->SetStyleName(sStyleName);
|
||||
String sParentStyleName(pNewStyle->GetParentStyleName());
|
||||
|
@ -1691,7 +1691,6 @@ sal_uLong SwDocShell::LoadStylesFromFile( const String& rURL,
|
||||
|
||||
// Create a URL from filename
|
||||
INetURLObject aURLObj( rURL );
|
||||
String sURL( aURLObj.GetMainURL( INetURLObject::NO_DECODE ) );
|
||||
|
||||
// Set filter:
|
||||
String sFactory(rtl::OUString::createFromAscii(SwDocShell::Factory().GetShortName()));
|
||||
|
@ -208,13 +208,12 @@ SfxPopupWindow* SwTbxAutoTextCtrl::CreatePopupWindow()
|
||||
{
|
||||
// Gruppenname mit Pfad-Extension besorgen
|
||||
String sTitle;
|
||||
String sGroupName = pGlossaryList->GetGroupName(i - 1, sal_False, &sTitle);
|
||||
sal_uInt16 nBlockCount = pGlossaryList->GetBlockCount(i -1);
|
||||
if(nBlockCount)
|
||||
{
|
||||
sal_uInt16 nIndex = 100 * (i);
|
||||
// aber ohne extension einfuegen
|
||||
pPopup->InsertItem( i, sTitle);//sGroupName.GetToken(0, GLOS_DELIM));
|
||||
pPopup->InsertItem( i, sTitle);
|
||||
PopupMenu* pSub = new PopupMenu;
|
||||
pSub->SetSelectHdl(aLnk);
|
||||
pPopup->SetPopupMenu(i, pSub);
|
||||
@ -306,7 +305,6 @@ IMPL_LINK(SwTbxAutoTextCtrl, PopupHdl, PopupMenu*, pMenu)
|
||||
SwGlossaryList* pGlossaryList = ::GetGlossaryList();
|
||||
String sShortName;
|
||||
String sGroup = pGlossaryList->GetGroupName(nBlock - 1, sal_False);
|
||||
String sLongName(pGlossaryList->GetBlockName(nBlock - 1, nId - (100 * nBlock) - 1, sShortName));
|
||||
|
||||
SwGlossaryHdl* pGlosHdl = pView->GetGlosHdl();
|
||||
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
|
||||
|
Loading…
x
Reference in New Issue
Block a user