diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-07-13 17:06:50 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-13 17:06:50 -0700 |
commit | fac4c65bedbc676ca57d90ed10c2dce7639b3dc6 (patch) | |
tree | 94dd0074f1b676434701491f05af6ed93e40f2a4 | |
parent | 90a9894c698e39146cbfc6d3194dc428fa9da024 (diff) | |
parent | 5f12f973dfc1baa98d484df269f8b251efcdccab (diff) | |
download | slang-temp_p_merge.tar.gz |
Merge "Fix unnecessary copy initialization warnings"temp_p_merge
am: 5f12f973df
Change-Id: I775e43dfa298bc9c31cb76dca52f3d1a9d37d7ef
-rw-r--r-- | slang_rs_reflection_state.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slang_rs_reflection_state.cpp b/slang_rs_reflection_state.cpp index 8fa9411..9bc067a 100644 --- a/slang_rs_reflection_state.cpp +++ b/slang_rs_reflection_state.cpp @@ -257,7 +257,7 @@ void ReflectionState::beginForEach(const RSExportForEach *EF) { return; const bool IsKernel = EF->isKernelStyle(); - const std::string Name = EF->getName(); + const std::string& Name = EF->getName(); const unsigned Ordinal = EF->getOrdinal(); const size_t InCount = EF->getInTypes().size(); const size_t ParamCount = EF->params_count(); @@ -573,7 +573,7 @@ void ReflectionState::declareInvokable(const RSExportFunc *EF) { if (!isActive()) return; - const std::string Name = EF->getName(/*Mangle=*/false); + const std::string& Name = EF->getName(/*Mangle=*/false); const size_t ParamCount = EF->getNumParameters(); auto &invokables = mFiles.Current().mInvokables; @@ -852,7 +852,7 @@ void ReflectionState::declareReduce(const RSExportReduce *ER, bool IsExportable) if (mReducesOrderFatal) return; - const std::string Name = ER->getNameReduce(); + const std::string& Name = ER->getNameReduce(); if (reduces.isFinished()) { // This doesn't actually break reflection, but that's a |