summaryrefslogtreecommitdiffstats
path: root/source/core/slang-text-io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-text-io.cpp')
-rw-r--r--source/core/slang-text-io.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/slang-text-io.cpp b/source/core/slang-text-io.cpp
index 4e989b627..ca3b9447c 100644
--- a/source/core/slang-text-io.cpp
+++ b/source/core/slang-text-io.cpp
@@ -278,7 +278,7 @@ namespace Slang
}
destBuffer[i] = ch;
}
- catch (EndOfStreamException)
+ catch (const EndOfStreamException& )
{
break;
}
@@ -307,7 +307,7 @@ namespace Slang
}
sb.Append(ch);
}
- catch (EndOfStreamException)
+ catch (const EndOfStreamException&)
{
break;
}
@@ -333,7 +333,7 @@ namespace Slang
else
sb.Append(ch);
}
- catch (EndOfStreamException)
+ catch (const EndOfStreamException&)
{
break;
}