From b881ba6efcd85a3faaadbb0e7d9599896ff895ff Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:10:09 +0800 Subject: [PATCH] fix buffer --- CMakeLists.txt | 2 +- tile/base/buffer.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 743b006..edc2a3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) diff --git a/tile/base/buffer.h b/tile/base/buffer.h index f093399..c6a3022 100644 --- a/tile/base/buffer.h +++ b/tile/base/buffer.h @@ -364,10 +364,10 @@ PolymorphicBuffer MakeForeignBuffer(std::string buffer); template PolymorphicBuffer MakeForeignBuffer(std::vector buffer); -bool StartsWith(const NoncontiguousBuffer &buffer, Slice prefix); -bool EndsWith(const NoncontiguousBuffer &buffer, Slice suffix); -bool StartsWithIgnoreCase(const NoncontiguousBuffer &buffer, Slice prefix); -bool EndsWithIgnoreCase(const NoncontiguousBuffer &buffer, Slice suffix); +bool StartsWith(NoncontiguousBuffer buffer, Slice prefix); +bool EndsWith(NoncontiguousBuffer buffer, Slice suffix); +bool StartsWithIgnoreCase(NoncontiguousBuffer buffer, Slice prefix); +bool EndsWithIgnoreCase(NoncontiguousBuffer buffer, Slice suffix); } // namespace tile #endif // TILE_BASE_BUFFER_H