SF.net SVN: geany:[5719] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed Apr 13 12:20:20 UTC 2011
Revision: 5719
http://geany.svn.sourceforge.net/geany/?rev=5719&view=rev
Author: ntrel
Date: 2011-04-13 12:20:19 +0000 (Wed, 13 Apr 2011)
Log Message:
-----------
Use brackets for DOC_FILENAME() macro 'doc' argument.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-04-13 12:16:02 UTC (rev 5718)
+++ trunk/ChangeLog 2011-04-13 12:20:19 UTC (rev 5719)
@@ -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>
Modified: trunk/src/document.h
===================================================================
--- trunk/src/document.h 2011-04-13 12:16:02 UTC (rev 5718)
+++ trunk/src/document.h 2011-04-13 12:20:19 UTC (rev 5719)
@@ -149,7 +149,7 @@
* 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)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list