Permalink
Browse files

Fix: removed exception flow control

  • Loading branch information...
WolfgangSt committed Jun 24, 2011
1 parent 57f6ab7 commit 6007b35bccfda7bdb8abca26de14dd44b25a7910
Showing with 1 addition and 11 deletions.
  1. +1 −11 Projects/Axiom/Engine/Core/StringConverter.cs
@@ -396,17 +396,7 @@ public static Quaternion ParseQuaternion( string p )
public static bool ParseInt( string value, out int num )
{
- bool retVal = true;
- try
- {
- num = Int32.Parse( value );
- }
- catch ( Exception )
- {
- num = 0;
- retVal = false;
- }
- return retVal;
+ return int.TryParse( value, out num);
}
}
}

0 comments on commit 6007b35

Please sign in to comment.