- Fixed crash of std::string initialization

- Fixed documentation mixing primitives



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@973 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-10-16 11:16:21 +00:00
parent bb9bd506cc
commit 6c7d87b460
2 changed files with 4 additions and 7 deletions

View File

@@ -23,12 +23,9 @@ std::string int2roman( size_t decimal, size_t length = 30 )
size_t power; // power of ten
size_t index; // Indexes thru values to subtract
std::string roman;
std::string roman = "";
roman.reserve(length);
roman[ 0 ] = '\0';
for ( power = 0; power < nrows; power++ )
for ( index = 0; index < ncols; index++ )
while ( decimal >= table_arabs[ power ][ index ] )