Kaydet (Commit) 9236d824 authored tarafından Matteo Casalin's avatar Matteo Casalin

Reduce scope of some variables

Change-Id: I2e2b10f95582c2c155ca78d4c7818ac38faa7a61
üst 12bdbfbc
...@@ -164,15 +164,12 @@ SwCallLink::~SwCallLink() ...@@ -164,15 +164,12 @@ SwCallLink::~SwCallLink()
if ( ((SwTxtNode*)pCNd)->HasHints() ) if ( ((SwTxtNode*)pCNd)->HasHints() )
{ {
const SwpHints &rHts = ((SwTxtNode*)pCNd)->GetSwpHints(); const SwpHints &rHts = ((SwTxtNode*)pCNd)->GetSwpHints();
sal_uInt16 n;
sal_Int32 nStart;
const sal_Int32 *pEnd;
for( n = 0; n < rHts.Count(); n++ ) for( sal_uInt16 n = 0; n < rHts.Count(); n++ )
{ {
const SwTxtAttr* pHt = rHts[ n ]; const SwTxtAttr* pHt = rHts[ n ];
pEnd = pHt->End(); const sal_Int32 *pEnd = pHt->End();
nStart = *pHt->GetStart(); const sal_Int32 nStart = *pHt->GetStart();
// If "only start" or "start and end equal" then call on // If "only start" or "start and end equal" then call on
// every overflow of start. // every overflow of start.
...@@ -193,7 +190,6 @@ SwCallLink::~SwCallLink() ...@@ -193,7 +190,6 @@ SwCallLink::~SwCallLink()
rShell.CallChgLnk(); rShell.CallChgLnk();
return; return;
} }
nStart = 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment