Skip to content

Commit

Permalink
PARQUET-894: Fix compilation warnings
Browse files Browse the repository at this point in the history
Complete commit: dfe1c73c89b8e7e8f87d4c57ba65b79a87fd8766.

Author: Thomas Sanchez <thomas.sanchz@gmail.com>

Closes apache#262 from daedric/PARQUET-894-reopened and squashes the following commits:

888282b [Thomas Sanchez] PARQUET-894: Fix compilation warnings

Change-Id: I490d7aaa8d455f98f9087a639e07f72bc0f655de
  • Loading branch information
daedric authored and xhochy committed Feb 28, 2017
1 parent b1ebe92 commit 5c9b4c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/parquet/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Encoder {
Encoding::type encoding() const { return encoding_; }

protected:
explicit Encoder(const ColumnDescriptor* descr, const Encoding::type& encoding,
explicit Encoder(const ColumnDescriptor* descr, Encoding::type encoding,
::arrow::MemoryPool* pool)
: descr_(descr), encoding_(encoding), pool_(pool) {}

Expand Down Expand Up @@ -123,10 +123,10 @@ class Decoder {
// the number of values left in this page.
int values_left() const { return num_values_; }

const Encoding::type encoding() const { return encoding_; }
Encoding::type encoding() const { return encoding_; }

protected:
explicit Decoder(const ColumnDescriptor* descr, const Encoding::type& encoding)
explicit Decoder(const ColumnDescriptor* descr, Encoding::type encoding)
: descr_(descr), encoding_(encoding), num_values_(0) {}

// For accessing type-specific metadata, like FIXED_LEN_BYTE_ARRAY
Expand Down

0 comments on commit 5c9b4c6

Please sign in to comment.