diff options
author | Elliott Hughes <enh@google.com> | 2018-09-05 12:13:11 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-09-05 12:13:11 -0700 |
commit | 86ab9ff8a2eb283cb19045a93d2fc37a940ecedb (patch) | |
tree | 3fdc65d1ddd89f855f5e18625191769f2e2b974b /adb/transport_local.cpp | |
parent | f33d19ff211317017bf7be936b32dafebc286ef9 (diff) | |
download | system_core-86ab9ff8a2eb283cb19045a93d2fc37a940ecedb.tar.gz system_core-86ab9ff8a2eb283cb19045a93d2fc37a940ecedb.tar.bz2 system_core-86ab9ff8a2eb283cb19045a93d2fc37a940ecedb.zip |
adb: static constexpr.
Also inline some single-use constants.
Bug: N/A
Test: ran tests
Change-Id: I1ac028667772599291da402120a270d0667fed04
Diffstat (limited to 'adb/transport_local.cpp')
-rw-r--r-- | adb/transport_local.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/transport_local.cpp b/adb/transport_local.cpp index 4fd483b57..8353d89f2 100644 --- a/adb/transport_local.cpp +++ b/adb/transport_local.cpp @@ -187,8 +187,8 @@ static void PollAllLocalPortsForEmulator() { } // Retry the disconnected local port for 60 times, and sleep 1 second between two retries. -constexpr uint32_t LOCAL_PORT_RETRY_COUNT = 60; -constexpr auto LOCAL_PORT_RETRY_INTERVAL = 1s; +static constexpr uint32_t LOCAL_PORT_RETRY_COUNT = 60; +static constexpr auto LOCAL_PORT_RETRY_INTERVAL = 1s; struct RetryPort { int port; |