Kaydet (Commit) 0fe6d567 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

janitorial: simplify code, no behaviour change

operator[] on a map implicitly adds an entry and default-initializes value part

Change-Id: Iab7817fb7fef5e9a6afdeb74be0d523fde59b5c1
üst d0535172
......@@ -1028,14 +1028,8 @@ namespace
for(;aIter != aEnd;++aIter)
{
static_cast<OQueryTableConnection*>(*aIter)->SetVisited(sal_False);
if ( aConnectionCount.find((*aIter)->GetSourceWin()) == aConnectionCount.end() )
aConnectionCount.insert(::std::map<OTableWindow*,sal_Int32>::value_type((*aIter)->GetSourceWin(),0));
else
aConnectionCount[(*aIter)->GetSourceWin()]++;
if ( aConnectionCount.find((*aIter)->GetDestWin()) == aConnectionCount.end() )
aConnectionCount.insert(::std::map<OTableWindow*,sal_Int32>::value_type((*aIter)->GetDestWin(),0));
else
aConnectionCount[(*aIter)->GetDestWin()]++;
aConnectionCount[(*aIter)->GetSourceWin()]++;
aConnectionCount[(*aIter)->GetDestWin()]++;
}
::std::multimap<sal_Int32 , OTableWindow*> aMulti;
::std::map<OTableWindow*,sal_Int32>::iterator aCountIter = aConnectionCount.begin();
......
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