summaryrefslogtreecommitdiff
path: root/gtk/gtksizerequestcacheprivate.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-07-21 10:00:35 +0200
committerTimm Bäder <mail@baedert.org>2018-08-05 10:22:10 +0200
commitc67bcf09b9f06f50be62f9bb7c43674fa289887b (patch)
treebc1c2124546ac0ef894ce77158c5ac9c285a3cda /gtk/gtksizerequestcacheprivate.h
parent5eba0bc9325ef80bcd0cfdb4333b4d2a605c4f5f (diff)
downloadgtk+-c67bcf09b9f06f50be62f9bb7c43674fa289887b.tar.gz
sizerequestcache: Inline out-var assignments
The additional assignment to the old result variable just adds an indirection even though we know the point where we assign it in all cases. Just pass the values out and return in those cases instead.
Diffstat (limited to 'gtk/gtksizerequestcacheprivate.h')
-rw-r--r--gtk/gtksizerequestcacheprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtksizerequestcacheprivate.h b/gtk/gtksizerequestcacheprivate.h
index ee826f4bb3..62ff226031 100644
--- a/gtk/gtksizerequestcacheprivate.h
+++ b/gtk/gtksizerequestcacheprivate.h
@@ -91,7 +91,7 @@ void _gtk_size_request_cache_commit (SizeRequestCach
int natural_size,
int minimum_baseline,
int natural_baseline);
-gboolean _gtk_size_request_cache_lookup (SizeRequestCache *cache,
+gboolean _gtk_size_request_cache_lookup (const SizeRequestCache *cache,
GtkOrientation orientation,
int for_size,
int *minimum,