mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-31 02:50:32 +05:00
Fix compilation on CentOS 6.4 and Debian 6.0
This commit is contained in:
parent
36b4b31800
commit
b9162f3eab
@ -32,6 +32,7 @@
|
|||||||
// STL includes
|
// STL includes
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
IMPLEMENT_STANDARD_RTTIEXT( GEOMGUI_AnnotationAttrs, Standard_Transient )
|
IMPLEMENT_STANDARD_RTTIEXT( GEOMGUI_AnnotationAttrs, Standard_Transient )
|
||||||
|
|
||||||
@ -40,7 +41,9 @@ namespace
|
|||||||
static const std::string PARAMETER_COUNT = "GEOMGUI_AnnotationAttrs_Count";
|
static const std::string PARAMETER_COUNT = "GEOMGUI_AnnotationAttrs_Count";
|
||||||
|
|
||||||
std::string PARAMETER_I( const std::string& s, const int i ) {
|
std::string PARAMETER_I( const std::string& s, const int i ) {
|
||||||
return std::string( s ) + std::to_string( i );
|
std::stringstream ss;
|
||||||
|
ss << i;
|
||||||
|
return std::string( s ) + ss.str();
|
||||||
}
|
}
|
||||||
std::string PARAMETER_IS_VISIBLE( const int i ) {
|
std::string PARAMETER_IS_VISIBLE( const int i ) {
|
||||||
return PARAMETER_I( "GEOMGUI_AnnotationAttrs_IsVisible", i );
|
return PARAMETER_I( "GEOMGUI_AnnotationAttrs_IsVisible", i );
|
||||||
|
Loading…
Reference in New Issue
Block a user