Open namespace around definitions

While defining functions in another namespace is technically allowed as
long as the definition can be matched to a declaration, this can lead to
ambiguous resolutions, such as here (GAL vs KIGFX).
This commit is contained in:
Simon Richter 2016-05-28 12:57:19 -04:00 committed by Chris Pavlina
parent 96ec9db5d6
commit 5b3d1d72e8
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,7 @@
#include <boost/foreach.hpp>
using namespace KIGFX;
namespace KIGFX {
RATSNEST_VIEWITEM::RATSNEST_VIEWITEM( RN_DATA* aData ) :
EDA_ITEM( NOT_USED ), m_data( aData )
@ -118,3 +118,5 @@ void RATSNEST_VIEWITEM::ViewGetLayers( int aLayers[], int& aCount ) const
aCount = 1;
aLayers[0] = ITEM_GAL_LAYER( RATSNEST_VISIBLE );
}
}