From a2b911b63f21185ca58381c0eb3ac04121615914 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 20 Feb 2015 11:21:19 -0800 Subject: [PATCH] inputs: restore "const" attribute removed by D33759 Summary: The "const" attribute applies to the type, and placing it before that return type retains the desired semantics, yet avoids the compiler error/warning. Test Plan: Run make Reviewers: ljin, sdong, igor.sugak, igor Reviewed By: igor Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D33789 --- db/compaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/compaction.h b/db/compaction.h index 47970c49a..12905163b 100644 --- a/db/compaction.h +++ b/db/compaction.h @@ -92,7 +92,7 @@ class Compaction { // input level. // REQUIREMENT: "compaction_input_level" must be >= 0 and // < "input_levels()" - std::vector* inputs(size_t compaction_input_level) { + const std::vector* inputs(size_t compaction_input_level) { assert(compaction_input_level < inputs_.size()); return &inputs_[compaction_input_level].files; }