Use brackets for DOC_FILENAME() macro 'doc' argument.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5719 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2011-04-13 12:20:19 +00:00
parent 5e4c8e0ade
commit 9733a9806f
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
* src/document.c:
Update dox for document_compare_by_display_name() with warning
about parameter addresses.
* src/document.h:
Use brackets for DOC_FILENAME() macro 'doc' argument.
2011-04-12 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -149,7 +149,7 @@ extern GPtrArray *documents_array;
* This macro never returns @c NULL.
**/
#define DOC_FILENAME(doc) \
(G_LIKELY(doc->file_name != NULL) ? (doc->file_name) : GEANY_STRING_UNTITLED)
(G_LIKELY((doc)->file_name != NULL) ? ((doc)->file_name) : GEANY_STRING_UNTITLED)