Skip to content

Commit 2ccb12a

Browse files
committed
Add missing inline
1 parent 7b0d0fc commit 2ccb12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typedef std::string StringOrView;
9595
namespace internal {
9696

9797
/// Short-hand method for initializing a std::string or std::string_view given a C-style const char*.
98-
const StringOrView InitString(const char* from_c_interface) {
98+
inline const StringOrView InitString(const char* from_c_interface) {
9999
#if GIT_VERSION_USE_STRING_VIEW
100100
return StringOrView { from_c_interface, std::strlen(from_c_interface) };
101101
#else

0 commit comments

Comments
 (0)