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:
parent
5e4c8e0ade
commit
9733a9806f
@ -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>
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user