From 204ec0c3f13f12a0b2c48c57093cca7cfa454e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 16 Oct 2013 11:17:11 +0000 Subject: [PATCH] Fixed tutorial git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@974 fdac6126-5c0c-442c-9429-916003d36597 --- Doc/Tutorial/09-persistence/int2roman.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Doc/Tutorial/09-persistence/int2roman.cc b/Doc/Tutorial/09-persistence/int2roman.cc index b0cb5a19..8ef776f0 100644 --- a/Doc/Tutorial/09-persistence/int2roman.cc +++ b/Doc/Tutorial/09-persistence/int2roman.cc @@ -27,12 +27,9 @@ std::string int2roman( size_t decimal, size_t length ) 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 ] )