Relocate AccumulateDescription to kicad_string.h

This commit is contained in:
Marek Roszko 2020-10-14 22:13:01 -04:00
parent 5e7e6a991a
commit afa9344444
3 changed files with 12 additions and 10 deletions

View File

@ -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_

View File

@ -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

View File

@ -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>