diff options
author | Patrick Venture <venture@google.com> | 2019-06-04 07:20:24 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-06-17 18:51:19 +0000 |
commit | 8bc117792fbf118dd74d015546c22612961ccc26 (patch) | |
tree | 561a4dbb372b4a8811ba66e8f8beac8da31bb6f1 /example/example.cpp | |
parent | a67323a86ec201d9292d2743a707ac04909615e3 (diff) | |
download | phosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.tar.gz phosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.zip |
blobs: s/struct BlobMeta/BlobMeta/g
Because this structure is not anything special, simply use the cpp
idiomatic way of referencing the object.
Consistently, structures that are packed still have "struct" used in
declarations. However, this distinction is only clear through its usage
and nothing in the language. Perhaps a better approach would be
notational naming struct PackedXYZ {};. However, that can get out of
control quickly.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I3b7e48e4b6687ef2e15e9d07c0eeba96eb5d2552
Diffstat (limited to 'example/example.cpp')
-rw-r--r-- | example/example.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/example.cpp b/example/example.cpp index dd7c486..2ab0bd3 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -41,7 +41,7 @@ bool ExampleBlobHandler::deleteBlob(const std::string& path) return false; } -bool ExampleBlobHandler::stat(const std::string& path, struct BlobMeta* meta) +bool ExampleBlobHandler::stat(const std::string& path, BlobMeta* meta) { return false; } @@ -149,7 +149,7 @@ bool ExampleBlobHandler::close(uint16_t session) return true; } -bool ExampleBlobHandler::stat(uint16_t session, struct BlobMeta* meta) +bool ExampleBlobHandler::stat(uint16_t session, BlobMeta* meta) { ExampleBlob* sess = getSession(session); if (!sess) |