Browse Source

Fixes VS2022 error C5233: explicit lambda capture 'isSlash' is not used (#6745)

Signed-off-by: Benjamin Jillich <[email protected]>
Benjamin Jillich 3 years ago
parent
commit
afc531d4c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Code/Tools/AssetProcessor/native/FileWatcher/FileWatcher.cpp

+ 1 - 1
Code/Tools/AssetProcessor/native/FileWatcher/FileWatcher.cpp

@@ -25,7 +25,7 @@ static bool IsSubfolder(const QString& folderA, const QString& folderB)
     using AZStd::begin;
     using AZStd::begin;
     using AZStd::end;
     using AZStd::end;
 
 
-    constexpr auto isSlash = [](const QChar c) constexpr
+    auto isSlash = [](const QChar c) constexpr
     {
     {
         return c == AZ::IO::WindowsPathSeparator || c == AZ::IO::PosixPathSeparator;
         return c == AZ::IO::WindowsPathSeparator || c == AZ::IO::PosixPathSeparator;
     };
     };