Relocate AccumulateDescription to kicad_string.h
This commit is contained in:
parent
5e7e6a991a
commit
afa9344444
|
@ -290,4 +290,15 @@ static inline std::vector<std::string> split( const std::string& aStr, const std
|
|||
return tokens;
|
||||
}
|
||||
|
||||
|
||||
/// Utility to build comma separated lists in messages
|
||||
inline void AccumulateDescription( wxString& aDesc, const wxString& aItem )
|
||||
{
|
||||
if( !aDesc.IsEmpty() )
|
||||
aDesc << wxT( ", " );
|
||||
|
||||
aDesc << aItem;
|
||||
}
|
||||
|
||||
|
||||
#endif // KICAD_STRING_H_
|
||||
|
|
|
@ -122,16 +122,6 @@ static inline wxString FROM_UTF8( const char* cstring )
|
|||
return line;
|
||||
}
|
||||
|
||||
|
||||
/// Utility to build comma separated lists in messages
|
||||
inline void AccumulateDescription( wxString &aDesc, const wxString &aItem )
|
||||
{
|
||||
if( !aDesc.IsEmpty() )
|
||||
aDesc << wxT(", ");
|
||||
|
||||
aDesc << aItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function GetChars
|
||||
* returns a wxChar* to the actual wxChar* data within a wxString, and is
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <pcb_screen.h>
|
||||
#include <class_board.h>
|
||||
#include <class_zone.h>
|
||||
#include <kicad_string.h>
|
||||
#include <math_for_graphics.h>
|
||||
#include <settings/color_settings.h>
|
||||
#include <settings/settings_manager.h>
|
||||
|
|
Loading…
Reference in New Issue