aboutsummaryrefslogtreecommitdiff
path: root/cpp/test/region_data_builder_test.cc
diff options
context:
space:
mode:
authorroubert@google.com <roubert@google.com@38ededc0-08b8-5190-f2ac-b31f878777ad>2014-06-16 20:48:52 +0000
committerroubert@google.com <roubert@google.com@38ededc0-08b8-5190-f2ac-b31f878777ad>2014-06-16 20:48:52 +0000
commit8c9b0e35847b85f4cc7434058e4e4ec5d5560c40 (patch)
tree7c2761c94d69ad04aaf79c2f9aee9191d30d3dce /cpp/test/region_data_builder_test.cc
parent59785b737879e688618ce91947ee45438e52b73d (diff)
downloadsrc-8c9b0e35847b85f4cc7434058e4e4ec5d5560c40.tar.gz
Make the Callback templates more generic.
Instead of unconditionally adding const& to the specified types, require the user of the Callback templates to specify it. This makes it possible to use these same templates also for other types. Now, const int& is replaced with just plain int. Later, this will be used to replace const std::string& with std::string*. R=rouslan@chromium.org git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@281 38ededc0-08b8-5190-f2ac-b31f878777ad
Diffstat (limited to 'cpp/test/region_data_builder_test.cc')
-rw-r--r--cpp/test/region_data_builder_test.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/test/region_data_builder_test.cc b/cpp/test/region_data_builder_test.cc
index 8856630..03b0981 100644
--- a/cpp/test/region_data_builder_test.cc
+++ b/cpp/test/region_data_builder_test.cc
@@ -55,9 +55,7 @@ class RegionDataBuilderTest : public testing::Test {
std::string best_language_;
private:
- void OnLoaded(bool success,
- const std::string& region_code,
- const int& num_rules) {
+ void OnLoaded(bool success, const std::string& region_code, int num_rules) {
ASSERT_TRUE(success);
ASSERT_FALSE(region_code.empty());
ASSERT_LT(0, num_rules);