diff dwtx/jface/text/hyperlink/URLHyperlinkDetector.d @ 140:26688fec6d23

Following dsss compile errors
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 03:23:46 +0200
parents 7d818bd32d63
children 25f1f92fa3df
line wrap: on
line diff
--- a/dwtx/jface/text/hyperlink/URLHyperlinkDetector.d	Sun Aug 24 02:31:41 2008 +0200
+++ b/dwtx/jface/text/hyperlink/URLHyperlinkDetector.d	Sun Aug 24 03:23:46 2008 +0200
@@ -55,7 +55,7 @@
      */
     public this() {
     }
-    
+
     /**
      * Creates a new URL hyperlink detector.
      *
@@ -94,7 +94,7 @@
         bool startDoubleQuote= false;
         int urlOffsetInLine= 0;
         int urlLength= 0;
-        
+
         int urlSeparatorOffset= line.indexOf("://"); //$NON-NLS-1$
         while (urlSeparatorOffset >= 0) {
 
@@ -118,10 +118,10 @@
             urlLength= tokenizer.nextToken().length() + 3 + urlSeparatorOffset - urlOffsetInLine;
             if (offsetInLine >= urlOffsetInLine && offsetInLine <= urlOffsetInLine + urlLength)
                 break;
-        
+
             urlSeparatorOffset= line.indexOf("://", urlSeparatorOffset + 1); //$NON-NLS-1$
         }
-        
+
         if (urlSeparatorOffset < 0)
             return null;
 
@@ -149,7 +149,7 @@
         }
 
         IRegion urlRegion= new Region(lineInfo.getOffset() + urlOffsetInLine, urlLength);
-        return new IHyperlink[] {new URLHyperlink(urlRegion, urlString)};
+        return [new URLHyperlink(urlRegion, urlString)];
     }
 
 }