Skip to content

Commit ac2aaab

Browse files
committed
remove inline and using ck's memcpy
1 parent f4ea23d commit ac2aaab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Functions/isIPAddressContainedIn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct IPTrait<IPKind::IPv4>
4141
{
4242
using ColumnType = DB::ColumnIPv4;
4343
using ElementType = UInt32;
44-
static inline ElementType getElement(const ColumnType * col, size_t n)
44+
static ElementType getElement(const ColumnType * col, size_t n)
4545
{
4646
return col->getElement(n);
4747
}
@@ -52,7 +52,7 @@ struct IPTrait<IPKind::IPv6>
5252
{
5353
using ColumnType = DB::ColumnIPv6;
5454
using ElementType = DB::UInt128;
55-
static inline ElementType getElement(const ColumnType * col, size_t n)
55+
static ElementType getElement(const ColumnType * col, size_t n)
5656
{
5757
return col->getElement(n);
5858
}
@@ -63,7 +63,7 @@ struct IPTrait<IPKind::String>
6363
{
6464
using ColumnType = DB::ColumnString;
6565
using ElementType = std::string_view;
66-
static inline ElementType getElement(const ColumnType * col, size_t n)
66+
static ElementType getElement(const ColumnType * col, size_t n)
6767
{
6868
return col->getDataAt(n).toView();
6969
}
@@ -84,7 +84,7 @@ class IPAddressVariant
8484
ip.addr = IPv6AddrType();
8585
auto * dst = std::get<IPv6AddrType>(ip.addr).data();
8686
const char * src = reinterpret_cast<const char *>(&address.items);
87-
std::memcpy(dst, src, IPV6_BINARY_LENGTH);
87+
memcpy(dst, src, IPV6_BINARY_LENGTH);
8888
}
8989
else
9090
{

0 commit comments

Comments
 (0)