mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Replace absl::optional with std::optional
PiperOrigin-RevId: 509649962
This commit is contained in:
committed by
Copybara-Service
parent
dcc4ed0249
commit
d0750694ff
@@ -16,11 +16,10 @@
|
||||
#define THIRD_PARTY_NEARBY_FASTPAIR_DATAPARSER_FAST_PAIR_DECODER_H_
|
||||
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/types/optional.h"
|
||||
|
||||
namespace nearby {
|
||||
namespace fastpair {
|
||||
|
||||
@@ -28,7 +27,7 @@ class FastPairDecoder {
|
||||
public:
|
||||
static bool HasModelId(const std::vector<uint8_t>* service_data);
|
||||
|
||||
static absl::optional<std::string> GetHexModelIdFromServiceData(
|
||||
static std::optional<std::string> GetHexModelIdFromServiceData(
|
||||
const std::vector<uint8_t>* service_data);
|
||||
};
|
||||
} // namespace fastpair
|
||||
|
||||
Reference in New Issue
Block a user