diff dwtx/jface/text/templates/persistence/TemplateReaderWriter.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 6dcb0baaa031
children 02cd5f1224d3
line wrap: on
line diff
--- a/dwtx/jface/text/templates/persistence/TemplateReaderWriter.d	Sun Aug 24 02:22:48 2008 +0200
+++ b/dwtx/jface/text/templates/persistence/TemplateReaderWriter.d	Sun Aug 24 02:26:23 2008 +0200
@@ -216,7 +216,7 @@
             Assert.isTrue(false);
         } catch (SAXException e) {
             Throwable t= e.getCause();
-            if (t instanceof IOException)
+            if ( cast(IOException)t )
                 throw cast(IOException) t;
             else if (t !is null)
                 throw new IOException(t.getMessage());