Преглед изворни кода

whitespace and string_view fixes

Signed-off-by: chcurran <[email protected]>
chcurran пре 4 година
родитељ
комит
59f4e865a4

+ 1 - 1
Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilder.cpp

@@ -277,7 +277,7 @@ namespace ScriptCanvasBuilder
 
         if (!resultFound)
         {
-            return AZ::Failure(AZStd::string::format("LoadEditorAssetTree failed to get engine relative path from %s-%s.", editorAssetId.ToString<AZStd::string>().c_str(), assetHint.data()));
+            return AZ::Failure(AZStd::string::format("LoadEditorAssetTree failed to get engine relative path from %s-%.*s.", editorAssetId.ToString<AZStd::string>().c_str(), assetHint.size(), assetHint.data()));
         }
 
         AZStd::vector<AZ::Data::AssetId> dependentAssets;

+ 2 - 1
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Grammar/AbstractCodeModel.cpp

@@ -1454,7 +1454,8 @@ namespace ScriptCanvas
                             {
                                 result.m_mostParent = outputSource;
                             }
-                        }                         while (childSequenceIndex);
+                        }
+                        while (childSequenceIndex);
                     }
                 }
 

+ 2 - 5
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Variable/GraphVariable.cpp

@@ -124,11 +124,8 @@ namespace ScriptCanvas
 
                     VariableFlags::Scope scope = VariableFlags::Scope::Graph;
 
-                    if ((exposureType & VariableFlags::Deprecated::Exposure::Exp_InOut) == VariableFlags::Deprecated::Exposure::Exp_InOut)
-                    {
-                        scope = VariableFlags::Scope::Graph;
-                    }
-                    else if (exposureType & VariableFlags::Deprecated::Exposure::Exp_Input)
+                    if (((exposureType & VariableFlags::Deprecated::Exposure::Exp_InOut) == VariableFlags::Deprecated::Exposure::Exp_InOut)
+                    || exposureType & VariableFlags::Deprecated::Exposure::Exp_Input)
                     {
                         scope = VariableFlags::Scope::Graph;
                     }