Merge pull request #247 from ItsBasi/patch-1
Avoid using pointers to temporary copies of desired extensions.
This commit is contained in:
commit
c4b3e6ed74
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ Manager::createDevice(const std::vector<uint32_t>& familyQueueIndices,
|
|||
KP_LOG_DEBUG("Kompute Manager available extensions {}",
|
||||
uniqueExtensionNames);
|
||||
std::vector<const char*> validExtensions;
|
||||
for (std::string ext : desiredExtensions) {
|
||||
for (const std::string& ext : desiredExtensions) {
|
||||
if (uniqueExtensionNames.count(ext) != 0) {
|
||||
validExtensions.push_back(ext.c_str());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue