From 6c7d87b460a9a19c02554333399bb5d90f0243be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 16 Oct 2013 11:16:21 +0000 Subject: [PATCH] - 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 --- src/OpenMesh/Core/Mesh/PolyConnectivity.hh | 6 +++--- src/Unittests/int2roman.hh | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/OpenMesh/Core/Mesh/PolyConnectivity.hh b/src/OpenMesh/Core/Mesh/PolyConnectivity.hh index 864f185e..423ccb0a 100644 --- a/src/OpenMesh/Core/Mesh/PolyConnectivity.hh +++ b/src/OpenMesh/Core/Mesh/PolyConnectivity.hh @@ -360,17 +360,17 @@ public: ConstVertexRange vertices() const { return ConstVertexRange(*this); } /** - * @return The vertices as a range object suitable for C++11 range based for loops. + * @return The halfedges as a range object suitable for C++11 range based for loops. */ ConstHalfedgeRange halfedges() const { return ConstHalfedgeRange(*this); } /** - * @return The vertices as a range object suitable for C++11 range based for loops. + * @return The edges as a range object suitable for C++11 range based for loops. */ ConstEdgeRange edges() const { return ConstEdgeRange(*this); } /** - * @return The vertices as a range object suitable for C++11 range based for loops. + * @return The faces as a range object suitable for C++11 range based for loops. */ ConstFaceRange faces() const { return ConstFaceRange(*this); } //@} diff --git a/src/Unittests/int2roman.hh b/src/Unittests/int2roman.hh index 356578be..37ee03a7 100644 --- a/src/Unittests/int2roman.hh +++ b/src/Unittests/int2roman.hh @@ -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 ] )