From 1d9164c11c491be922f83209d51a3bf54446792c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 23 Aug 2023 14:35:16 +0200 Subject: [PATCH] Silence warning --- src/OpenMesh/Examples/Tutorial10/int2roman.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OpenMesh/Examples/Tutorial10/int2roman.cc b/src/OpenMesh/Examples/Tutorial10/int2roman.cc index b0cb5a19..89e03478 100644 --- a/src/OpenMesh/Examples/Tutorial10/int2roman.cc +++ b/src/OpenMesh/Examples/Tutorial10/int2roman.cc @@ -27,12 +27,10 @@ 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('\0'); roman.reserve(length); - roman[ 0 ] = '\0'; - for ( power = 0; power < nrows; power++ ) for ( index = 0; index < ncols; index++ ) while ( decimal >= table_arabs[ power ][ index ] )