From 8ca8887849bf1e0b47a281d652faee15594e33bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 8 Dec 2011 22:24:09 +0100 Subject: [PATCH] C++ Builder : Fixed compiler error --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 3a545e89f..d32345dcb 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8132,7 +8132,7 @@ void Tokenizer::simplifyEnum() } if (enumType) { - const std::string pattern(className.empty() ? std::string("") : (className + " :: " + enumType->str())); + const std::string pattern(className.empty() ? "" : (className + " :: " + enumType->str()).c_str()); // count { and } for tok2 int level = 0;