Rename indentBlock to indent.
No reason to add "block" to the name.
Test: compiles
Change-Id: I8a930cb8d9bb7d03d302c0b9c308ab6d40045260
diff --git a/Interface.cpp b/Interface.cpp
index 4117177..9276839 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -314,7 +314,7 @@
out.indent();
out << "::android::sp<::android::hardware::IBinder> _hidl_binder = "
<< "::android::hardware::toBinder<\n";
- out.indentBlock(2, [&] {
+ out.indent(2, [&] {
out << fqName().cppName()
<< ", "
<< getProxyName().cppName()
@@ -323,13 +323,13 @@
<< ");\n";
});
out << "if (_hidl_binder.get() != nullptr) {\n";
- out.indentBlock([&] {
+ out.indent([&] {
out << "_hidl_err = "
<< parcelObjDeref
<< "writeStrongBinder(_hidl_binder);\n";
});
out << "} else {\n";
- out.indentBlock([&] {
+ out.indent([&] {
out << "_hidl_err = ::android::UNKNOWN_ERROR;\n";
});
out << "}\n";