From f363bc1560a418608ca428d1b986d1d70915147d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 18 Feb 2011 20:21:48 +0100 Subject: [PATCH] Borland C++: Fixed compiler error --- lib/tokenize.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index dd6ee87eb..d578c9ad9 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1,4 +1,4 @@ -/* +/* * Cppcheck - A tool for static C/C++ code analysis * Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team. * @@ -7687,9 +7687,9 @@ void Tokenizer::simplifyEnum() // find all uses of this enumerator and substitute it's value for it's name if (enumName && (enumValue || (enumValueStart && enumValueEnd))) { - const std::string pattern(className.empty() ? - std::string("") : - (className + " :: " + enumName->str())); + const std::string pattern = className.empty() ? + std::string("") : + std::string(className + " :: " + enumName->str()); int level = 1; bool inScope = true;