From 0909c01b2f5d3a466fe6094a501a2893170e2616 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Fri, 11 May 2012 13:18:52 +0200 Subject: qdoc: Fixed a regression bug caused by fixing error messages The C++ code marker is the default code marker. The default code marker was being called for .qdoc files. But when the tree nodes were each assigned a location object based on the location in the source file where the node was built, the default code marker was no longer used. Instead, the plain code marker was used. This was wrong. qdoc now knows to use the C++ code marker for all .qdoc files. Change-Id: I15a58168db74cc5aa82a1fbccc5b7ece219ec297 Reviewed-by: Casper van Donderen --- src/tools/qdoc/cppcodemarker.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/qdoc/cppcodemarker.cpp') diff --git a/src/tools/qdoc/cppcodemarker.cpp b/src/tools/qdoc/cppcodemarker.cpp index 165a235a86d..4e5a9eb5004 100644 --- a/src/tools/qdoc/cppcodemarker.cpp +++ b/src/tools/qdoc/cppcodemarker.cpp @@ -86,6 +86,7 @@ bool CppCodeMarker::recognizeExtension(const QString& extension) QByteArray ext = extension.toLatin1(); return ext == "c" || ext == "c++" || + ext == "qdoc" || ext == "cc" || ext == "cpp" || ext == "cxx" || -- cgit v1.2.3