[PATCH] delete previous uncommented comments in positionhelper.cxx
Joren De Cuyper (via Code Review)
gerrit at gerrit.libreoffice.org
Wed Mar 6 09:14:19 PST 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/2571
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/71/2571/1
delete previous uncommented comments in positionhelper.cxx
Change-Id: I0f177a078b915c1220423ea583e749de4d02e384
---
M sw/source/core/fields/postithelper.cxx
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index b68fe12..1937cee 100644
--- a/sw/source/core/fields/postithelper.cxx
+++ b/sw/source/core/fields/postithelper.cxx
@@ -165,16 +165,11 @@
SwPosition SwAnnotationItem::GetAnchorPosition() const
{
SwTxtFld* pFld = pFmtFld->GetTxtFld();
- if( pFld )
- {
- SwTxtNode* pTNd = pFld->GetpTxtNode();
- if( pTNd )
- {
- SwPosition aPos( *pTNd );
- aPos.nContent.Assign( pTNd, *pFld->GetStart() );
- return aPos;
- }
- }
+ SwTxtNode* pTNd = pFld->GetpTxtNode();
+
+ SwPosition aPos( *pTNd );
+ aPos.nContent.Assign( pTNd, *pFld->GetStart() );
+ return aPos;
}
bool SwAnnotationItem::UseElement()
--
To view, visit https://gerrit.libreoffice.org/2571
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f177a078b915c1220423ea583e749de4d02e384
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Joren De Cuyper <joren.libreoffice at telenet.be>
More information about the LibreOffice
mailing list