Skip to content

Commit

Permalink
Use data() for getting pointer instead of begin() (#4816)
Browse files Browse the repository at this point in the history
  • Loading branch information
4JustMe4 authored May 24, 2024
1 parent 2bb6c6a commit 6f48846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/driver_lib/run/kikimr_services_initializers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static TCpuMask ParseAffinity(const TConfig& cfg) {
if (cfg.GetCpuList()) {
result = TCpuMask(cfg.GetCpuList());
} else if (cfg.GetX().size() > 0) {
result = TCpuMask(cfg.GetX().begin(), cfg.GetX().size());
result = TCpuMask(cfg.GetX().data(), cfg.GetX().size());
} else { // use all processors
TAffinity available;
available.Current();
Expand Down

0 comments on commit 6f48846

Please sign in to comment.