File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ MimeTypes TMimeTypes::MimeByStr(const char* str) const {
158158}
159159
160160MimeTypes TMimeTypes::MimeByStr (const TStringBuf& str) const {
161- TRecordHash::const_iterator it = ContentTypes.find (str);
161+ TRecordHash::const_iterator it = ContentTypes.find (str. data () );
162162 if (it == ContentTypes.end ())
163163 return MIME_UNKNOWN;
164164 return Records[it->second ].Mime ;
Original file line number Diff line number Diff line change @@ -387,11 +387,11 @@ _ydb_sdk_add_library(yutil)
387387
388388target_compile_options (yutil PUBLIC
389389 -DTSTRING_IS_STD_STRING
390+ -DNO_CUSTOM_CHAR_PTR_STD_COMPARATOR
390391)
391392
392393target_compile_options (yutil PRIVATE
393394 -Wnarrowing
394- -DNO_CUSTOM_CHAR_PTR_STD_COMPARATOR
395395)
396396
397397target_link_libraries (yutil PUBLIC
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ _ydb_sdk_add_library(util-charset)
66
77target_compile_options (util-charset PUBLIC
88 -DTSTRING_IS_STD_STRING
9+ -DNO_CUSTOM_CHAR_PTR_STD_COMPARATOR
910)
1011
1112target_compile_options (util-charset PRIVATE
1213 -Wnarrowing
13- -DNO_CUSTOM_CHAR_PTR_STD_COMPARATOR
1414)
1515
1616target_joined_source(util-charset
You can’t perform that action at this time.
0 commit comments