[Libreoffice-commits] .: tools/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu May 19 08:37:12 PDT 2011


 tools/source/fsys/urlobj.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c6b16926a79d664a19e9b766bcddd7a0ffd5d499
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Thu May 19 17:36:37 2011 +0200

    Added some important comment about a list that needs to be sorted

diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 40c2a5f..61a0bad 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2219,6 +2219,7 @@ INetURLObject::getPrefix(sal_Unicode const *& rBegin,
             { "vnd.sun.star.webdav:", 0, INET_PROT_VND_SUN_STAR_WEBDAV,
               PrefixInfo::OFFICIAL },
             { "sftp:", 0, INET_PROT_SFTP, PrefixInfo::OFFICIAL } };
+    /* This list needs to be sorted, or you'll introduce serious bugs */
 
     PrefixInfo const * pFirst = aMap + 1;
     PrefixInfo const * pLast = aMap + sizeof aMap / sizeof (PrefixInfo) - 1;


More information about the Libreoffice-commits mailing list