Skip to content

Commit 88f7196

Browse files
committed
Merge pull request #3 from kumagi/master
Removed unnecessary whitespace.
2 parents 0d8e918 + b6f5a55 commit 88f7196

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+277
-277
lines changed

riak_client/cxx/basic.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");

riak_client/cxx/basic/basic_client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");

riak_client/cxx/basic/bucket_properties.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
#include <riak_client/cxx/riak_client_fwd.hpp>
2424

25-
namespace riak {
25+
namespace riak {
2626

2727
/// Customizable properties of a Riak Bucket.
28-
///
28+
///
2929
/// @see http://wiki.basho.com/Basic-Riak-API-Operations.html
3030
class RIAKC_API bucket_properties
3131
{
3232
public:
33-
bucket_properties()
33+
bucket_properties()
3434
: allow_mult_(false), n_val_(-1) { }
3535

3636
/// Return the value of the <dfn>allow_mult</dfn> bucket property.
@@ -41,7 +41,7 @@ class RIAKC_API bucket_properties
4141

4242
/// Return the <dfn>n-val</dfn> bucket property.
4343
///
44-
/// The n-value is the replication factor of a bucket.
44+
/// The n-value is the replication factor of a bucket.
4545
int n_val() const
4646
{
4747
return n_val_;
@@ -53,7 +53,7 @@ class RIAKC_API bucket_properties
5353
allow_mult_ = allow;
5454
}
5555

56-
/// Set the <dfn>n_val</dfn> bucket property.
56+
/// Set the <dfn>n_val</dfn> bucket property.
5757
void n_val(int n)
5858
{
5959
n_val_ = n;

riak_client/cxx/basic/quorum.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
#include <riak_client/cxx/riak_client_fwd.hpp>
2121

22-
namespace riak {
22+
namespace riak {
2323

24-
struct quora
24+
struct quora
2525
{
2626
quora() : qval_(-1) {}
2727
quora(int val) : qval_(val) {}
@@ -33,8 +33,8 @@ namespace riak {
3333
struct ONE : quora {};
3434
struct ALL : quora {};
3535
struct QUORUM : quora {};
36-
struct DEFAULT : quora {};
37-
36+
struct DEFAULT : quora {};
37+
3838
} // :: riak
3939

4040
#endif // include guard

riak_client/cxx/basic/response.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
@@ -23,8 +23,8 @@
2323
namespace riak {
2424

2525
template <class T>
26-
class RIAKC_API response
27-
{
26+
class RIAKC_API response
27+
{
2828
public: // constructors
2929
response(const riak_error& error)
3030
: error_(error), value_() { }
@@ -34,11 +34,11 @@ class RIAKC_API response
3434
public: // accessors
3535
riak_error error() const { return error_; }
3636

37-
T value() {
38-
if (error_) {
37+
T value() {
38+
if (error_) {
3939
throw exception(error_);
4040
}
41-
return value_;
41+
return value_;
4242
}
4343
operator T() { return value(); }
4444
operator const T() const { return value(); }

riak_client/cxx/basic/riak_result.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,7 +21,7 @@
2121
#include <riak_client/cxx/error.hpp>
2222
#include <riak_client/cxx/object.hpp>
2323

24-
namespace riak {
24+
namespace riak {
2525

2626
class RIAKC_API riak_result : public riak_version
2727
{
@@ -45,17 +45,17 @@ class RIAKC_API riak_result : public riak_version
4545
bool not_found() const { return contents_.empty(); }
4646
std::size_t sibling_count() const { return contents_.size(); }
4747
const content_vector& contents() const { return contents_; }
48-
operator object()
48+
operator object()
4949
{
50-
if (contents_.size() != 1)
50+
if (contents_.size() != 1)
5151
{
5252
throw riak::exception("unresolved conflict");
5353
}
5454
return object(*this, contents_[0]);
5555
}
56-
operator const object() const
57-
{
58-
if (contents_.size() != 1)
56+
operator const object() const
57+
{
58+
if (contents_.size() != 1)
5959
{
6060
throw riak::exception("unresolved conflict");
6161
}

riak_client/cxx/basic/server_info.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,7 +19,7 @@
1919

2020
#include <riak_client/cxx/riak_client_fwd.hpp>
2121

22-
namespace riak {
22+
namespace riak {
2323

2424
class RIAKC_API server_info
2525
{

riak_client/cxx/basic/store_params.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,9 +19,9 @@
1919

2020
#include <riak_client/cxx/basic/quorum.hpp>
2121

22-
namespace riak {
22+
namespace riak {
2323

24-
class RIAKC_API store_params
24+
class RIAKC_API store_params
2525
{
2626
public:
2727
store_params()
@@ -35,9 +35,9 @@ class RIAKC_API store_params
3535
store_params& w(quora w) { w_ = w; return *this;}
3636
store_params& dw(quora dw) { dw_ = dw; return *this;}
3737
store_params& pw(quora pw) { pw_ = pw; return *this; }
38-
store_params& return_body(bool returnbody)
39-
{
40-
return_body_ = returnbody;
38+
store_params& return_body(bool returnbody)
39+
{
40+
return_body_ = returnbody;
4141
return *this;
4242
}
4343
private: // intentionally copyable

riak_client/cxx/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2011 Basho Technologies, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");

riak_client/cxx/client/bucket.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@
3232
namespace riak {
3333

3434
template <class T=std::string>
35-
class RIAKC_API basic_bucket
35+
class RIAKC_API basic_bucket
3636
{
3737
public:
3838
basic_bucket(const std::string& name, client_ptr c)
3939
: name_(name), client_(c) { }
4040
public:
4141
const std::string& name() const { return name_; }
4242
string_vector keys() { return client_->list_keys(name_); }
43-
fetch_object<T> fetch(const std::string& key)
43+
fetch_object<T> fetch(const std::string& key)
4444
{
4545
return fetch_object<T>(client_, name_, key);
4646
}
4747
store_object<T> store(const std::string& key, const std::string& value)
4848
{
4949
return store_object<T>(client_, name_, key).with_value(value);
5050
}
51-
store_object<T> store(const std::string& key, const char* buf,
51+
store_object<T> store(const std::string& key, const char* buf,
5252
std::size_t len);
5353

54-
delete_object del(const std::string& key)
54+
delete_object del(const std::string& key)
5555
{
5656
return delete_object(client_, name_, key);
5757
}

0 commit comments

Comments
 (0)