-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: avoid unnecessary string copying when calling static properties…
… of interfaces
- Loading branch information
1 parent
88ce2d8
commit 8b53d02
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
test-app/runtime/src/main/cpp/DesugaredInterfaceCompanionClassNameResolver.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#include "DesugaredInterfaceCompanionClassNameResolver.h" | ||
|
||
std::string DesugaredInterfaceCompanionClassNameResolver::resolveD8InterfaceCompanionClassName( | ||
std::string interfaceName) { | ||
const std::string& interfaceName) { | ||
return interfaceName + D8_COMPANION_CLASS_SUFFIX; | ||
} | ||
|
||
std::string DesugaredInterfaceCompanionClassNameResolver::resolveBazelInterfaceCompanionClassName( | ||
std::string interfaceName) { | ||
const std::string& interfaceName) { | ||
return interfaceName + BAZEL_COMPANION_CLASS_SUFFIX; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters