Skip to content

Commit

Permalink
Simplify grnxx::Text variable initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Dec 2, 2014
1 parent b19bc8f commit f39c7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ void test_text_find_starts_with() {

// Test cursors for each value.
for (int int_value = 0; int_value < 100; ++int_value) {
grnxx::Text value = grnxx::Text(bodies[int_value]);
grnxx::Text value(bodies[int_value]);

grnxx::EndPoint prefix;
prefix.value = value;
Expand All @@ -777,7 +777,7 @@ void test_text_find_starts_with() {

// Test cursors for each value.
for (int int_value = 0; int_value < 100; ++int_value) {
grnxx::Text value = grnxx::Text(bodies[int_value]);
grnxx::Text value(bodies[int_value]);

grnxx::EndPoint prefix;
prefix.value = value;
Expand Down

0 comments on commit f39c7f7

Please sign in to comment.