summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-11-17 15:02:03 (GMT)
committerGitHub <noreply@github.com>2018-11-17 15:02:03 (GMT)
commitd90cdff51d664a2259542fceda9e01c446b70980 (patch)
treeff48861ae39fce1af98d8d0cbcc8e8a895952fe6 /src
parent511efa85de3b6298776c2acf16d67b6bcbf4346b (diff)
parent21021ce13919d19ce5434a3db868c2d4f5a4a53c (diff)
downloadDoxygen-d90cdff51d664a2259542fceda9e01c446b70980.zip
Doxygen-d90cdff51d664a2259542fceda9e01c446b70980.tar.gz
Doxygen-d90cdff51d664a2259542fceda9e01c446b70980.tar.bz2
Merge pull request #6623 from albert-github/feature/bug_print_warn
Replace 'printf' with appropriate warn 'message'
Diffstat (limited to 'src')
-rw-r--r--src/docparser.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index b414e8f..39978de 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -269,7 +269,7 @@ static void unescapeCRef(QCString &s)
* copies the image to the output directory (which depends on the \a type
* parameter).
*/
-static QCString findAndCopyImage(const char *fileName,DocImage::Type type, bool warn = true)
+static QCString findAndCopyImage(const char *fileName,DocImage::Type type, bool dowarn = true)
{
QCString result;
bool ambig;
@@ -337,7 +337,8 @@ static QCString findAndCopyImage(const char *fileName,DocImage::Type type, bool
}
else
{
- printf("Source and Destination are the same!\n");
+ warn(g_fileName,doctokenizerYYlineno,
+ "Prevented to copy file %s onto itself!\n",qPrint(inputFile));
}
}
else
@@ -365,7 +366,7 @@ static QCString findAndCopyImage(const char *fileName,DocImage::Type type, bool
return baseName;
}
}
- else if (ambig && warn)
+ else if (ambig && dowarn)
{
QCString text;
text.sprintf("image file name %s is ambiguous.\n",qPrint(fileName));
@@ -376,7 +377,7 @@ static QCString findAndCopyImage(const char *fileName,DocImage::Type type, bool
else
{
result=fileName;
- if (result.left(5)!="http:" && result.left(6)!="https:" && warn)
+ if (result.left(5)!="http:" && result.left(6)!="https:" && dowarn)
{
warn_doc_error(g_fileName,doctokenizerYYlineno,
"image file %s is not found in IMAGE_PATH: "