Browse Source

More double const warnings

newinvert
Marek Roszko 2 years ago
parent
commit
88bf6b2627
  1. 8
      utils/idftools/idf_parser.cpp
  2. 8
      utils/idftools/idf_parser.h

8
utils/idftools/idf_parser.cpp

@ -1208,7 +1208,7 @@ size_t IDF3_COMPONENT::GetOutlinesSize( void )
} }
const std::list< IDF3_COMP_OUTLINE_DATA* >*const IDF3_COMPONENT::GetOutlinesData( void )
const std::list< IDF3_COMP_OUTLINE_DATA* >* IDF3_COMPONENT::GetOutlinesData( void )
{ {
return &components; return &components;
} }
@ -3480,7 +3480,7 @@ BOARD_OUTLINE* IDF3_BOARD::GetBoardOutline( void )
} }
const std::list< IDF_OUTLINE* >*const IDF3_BOARD::GetBoardOutlines( void )
const std::list< IDF_OUTLINE* >* IDF3_BOARD::GetBoardOutlines( void )
{ {
return olnBoard.GetOutlines(); return olnBoard.GetOutlines();
} }
@ -3925,7 +3925,7 @@ size_t IDF3_BOARD::GetComponentsSize( void )
} }
std::map< std::string, IDF3_COMPONENT* >*const IDF3_BOARD::GetComponents( void )
std::map< std::string, IDF3_COMPONENT* >* IDF3_BOARD::GetComponents( void )
{ {
return &components; return &components;
} }
@ -4411,7 +4411,7 @@ void IDF3_BOARD::Clear( void )
} }
const std::map<std::string, OTHER_OUTLINE*>* const IDF3_BOARD::GetOtherOutlines( void )
const std::map<std::string, OTHER_OUTLINE*>* IDF3_BOARD::GetOtherOutlines( void )
{ {
return &olnOther; return &olnOther;
} }

8
utils/idftools/idf_parser.h

@ -334,7 +334,7 @@ public:
/** /**
* @return the internal list of outline data. * @return the internal list of outline data.
*/ */
const std::list< IDF3_COMP_OUTLINE_DATA* >*const GetOutlinesData( void );
const std::list< IDF3_COMP_OUTLINE_DATA* >* GetOutlinesData( void );
/** /**
* Retrieve the internal position parameters and returns true if the * Retrieve the internal position parameters and returns true if the
@ -470,10 +470,10 @@ public:
bool DelBoardOutline( size_t aIndex ); bool DelBoardOutline( size_t aIndex );
size_t GetBoardOutlinesSize( void ); size_t GetBoardOutlinesSize( void );
BOARD_OUTLINE* GetBoardOutline( void ); BOARD_OUTLINE* GetBoardOutline( void );
const std::list< IDF_OUTLINE* >*const GetBoardOutlines( void );
const std::list< IDF_OUTLINE* >* GetBoardOutlines( void );
// Operations for OTHER OUTLINES // Operations for OTHER OUTLINES
const std::map<std::string, OTHER_OUTLINE*>*const GetOtherOutlines( void );
const std::map<std::string, OTHER_OUTLINE*>* GetOtherOutlines( void );
/// XXX - TO BE IMPLEMENTED /// XXX - TO BE IMPLEMENTED
// //
@ -554,7 +554,7 @@ public:
bool DelComponent( IDF3_COMPONENT* aComponent ); bool DelComponent( IDF3_COMPONENT* aComponent );
bool DelComponent( size_t aIndex ); bool DelComponent( size_t aIndex );
size_t GetComponentsSize( void ); size_t GetComponentsSize( void );
std::map< std::string, IDF3_COMPONENT* >*const GetComponents( void );
std::map< std::string, IDF3_COMPONENT* >* GetComponents( void );
IDF3_COMPONENT* FindComponent( const std::string& aRefDes ); IDF3_COMPONENT* FindComponent( const std::string& aRefDes );
// Return a pointer to a component outline object or NULL if the object doesn't exist. // Return a pointer to a component outline object or NULL if the object doesn't exist.

Loading…
Cancel
Save