summaryrefslogtreecommitdiff
path: root/libutils/Threads.cpp
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@google.com>2021-08-12 10:56:44 -0700
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-08-19 02:38:09 +0000
commit58ba70e045173041bde28ca1cf7b747d15add6b9 (patch)
tree5fe0a914c5560e1f1bdb3c1e46e0c04074d5f10b /libutils/Threads.cpp
parentf1649b2da540f8e942689bc5d5b8f03902956a25 (diff)
libdm: Make ExtractBlockDeviceName() return its result
From https://engdoc.corp.google.com/eng/doc/devguide/cpp/styleguide.md: "Prefer using return values over output parameters: they improve readability, and often provide the same or better performance (see the C++ Primer)." Implement this advice for ExtractBlockDeviceName(). This patch does not change any functionality. Bug: 194450129 Test: mm libfs_mgr libdm_test Merged-In: I6363781163eba08e6128507b403200f472f68a59 Change-Id: I7d340b33281ebccded0836cd0b5a293e941f4043 Ignore-AOSP-First: Already in AOSP. Signed-off-by: Bart Van Assche <bvanassche@google.com> (cherry picked from commit 96b21cc589349d346e4c587d92867ddee66f45dd)
Diffstat (limited to 'libutils/Threads.cpp')
0 files changed, 0 insertions, 0 deletions