[Libreoffice] [PATCH 3/3] Better English messages and comments in ure/xml2cmp

Laurent Charrière lcharriere at gmail.com
Thu Oct 14 22:26:49 PDT 2010


Signed-off-by: Laurent Charrière <lcharriere at gmail.com>
---
 xml2cmp/source/support/sistr.hxx |    4 ++--
 xml2cmp/source/xcd/main.cxx      |    4 ++--
 xml2cmp/source/xcd/parse.cxx     |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/xml2cmp/source/support/sistr.hxx b/xml2cmp/source/support/sistr.hxx
index 7ed5840..deb7d6e 100644
--- a/xml2cmp/source/support/sistr.hxx
+++ b/xml2cmp/source/support/sistr.hxx
@@ -51,8 +51,8 @@ class  Simstr
 
       // diverse utility functions
       const char *   str() const				{ return sz; }
-      char *         s();   // ATTENTION !!!       // Only to be used, when a function needs a 'char*' but
-                                                   //   nevertheless THAT WILL BE NOT CHANGED!
+      char *         s();   // CAUTION!!!          // Only use when a function needs a 'char*' but
+                                                   //   still will NOT MODIFY THE STRING!
                                                    //   Typecasts to 'const char*' are performed automatically.
       int            l() const;                    // Length of string without '\0' at end.
       Simstr         operator+(
diff --git a/xml2cmp/source/xcd/main.cxx b/xml2cmp/source/xcd/main.cxx
index 377cd9a..3f3a325 100644
--- a/xml2cmp/source/xcd/main.cxx
+++ b/xml2cmp/source/xcd/main.cxx
@@ -134,10 +134,10 @@ Do_IndexCommandLine(const CommandLine & i_rCommandLine)
                             i_rCommandLine.IdlRootPath(),
                             i_rCommandLine.IndexedTags() );
 
-    std::cout << "Gather xml-files ..." << std::endl;
+    std::cout << "Gathering xml-files ..." << std::endl;
     GatherFileNames( aFiles, i_rCommandLine.XmlSrcDirectory() );
 
-    std::cout << "Create output ..." << std::endl;
+    std::cout << "Creating output ..." << std::endl;
     aIndex.GatherData(aFiles);
     aIndex.WriteOutput( i_rCommandLine.IndexOutputFile() );
 
diff --git a/xml2cmp/source/xcd/parse.cxx b/xml2cmp/source/xcd/parse.cxx
index 20198cf..9a7b4f6 100644
--- a/xml2cmp/source/xcd/parse.cxx
+++ b/xml2cmp/source/xcd/parse.cxx
@@ -216,7 +216,7 @@ X2CParser::Parse_SglAttr( Simstr &			o_sAttrValue,
 
     Pass_White();
     if (*text == '>')
-        SyntaxError("no attribute found, where one was expected");
+        SyntaxError("no attribute found where one was expected");
     Simstr sAttrName;
     Get_Attribute(o_sAttrValue, sAttrName);
     if (sAttrName != i_sAttrName)
-- 
1.7.1



More information about the LibreOffice mailing list