[Libreoffice-commits] core.git: sw/source unodevtools/source writerfilter/source xmloff/source

Andrea Gelmini andrea.gelmini at gelma.net
Thu Mar 15 19:10:20 UTC 2018


 sw/source/filter/ww8/docxattributeoutput.cxx         |    2 +-
 unodevtools/source/skeletonmaker/cppcompskeleton.cxx |   10 +++++-----
 writerfilter/source/dmapper/PropertyMap.cxx          |    2 +-
 xmloff/source/core/xmlimp.cxx                        |    4 ++--
 xmloff/source/style/xmlexppr.cxx                     |    2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 4defe28e5f28a68a23317e1d50c51d29cf58226e
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
Date:   Thu Mar 15 15:27:55 2018 +0100

    Fix typos
    
    Change-Id: Icb2d5f8bb9eb781d6a59384e1aac75abf6145774
    Reviewed-on: https://gerrit.libreoffice.org/51337
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 21b4d57d4321..d4cf4c8f29c4 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3081,7 +3081,7 @@ struct BorderDistances
 // border position (modulo rounding errors):
 // 1. When distance of all borders from text is no greater than 31 pt, we use "from text"
 // 2. Otherwise, if distance of all borders from edge is no greater than 31 pt, we use "from edge"
-// In all other cases, the position of borders would be distirted on export, because Word doesn't
+// In all other cases, the position of borders would be distorted on export, because Word doesn't
 // support the offset of >31 pts (https://msdn.microsoft.com/en-us/library/ff533820), and we need
 // to decide which type of offset would provide less wrong result (i.e., the result would look
 // closer to original). Here, we just check sum of distances from text to borders, and if it is
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index a19f9250c0ca..0fba9d46ab14 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -129,7 +129,7 @@ OString generateCompHelperDeclaration(std::ostream & o,
         " css::uno::Reference< css::uno::XComponentContext > const & "
         "context );\n\n";
 
-    // close namepsace
+    // close namespace
     for (short i=0; i < nbrackets; i++)
         o << "} ";
     o << "// closing component helper namespace\n\n";
@@ -169,7 +169,7 @@ void generateCompHelperDefinition(std::ostream & o,
          "    return static_cast< ::cppu::OWeakObject * >(new "
       << classname <<  "(context));\n}\n\n";
 
-    // close namepsace
+    // close namespace
     for (short j=0; j < nbrackets; j++)
         o << "} ";
     o << "// closing component helper namespace\n\n";
@@ -1041,14 +1041,14 @@ void generateSkeleton(ProgramOptions const & options,
                              nmspace, propertyhelper);
 
         if (serviceobject) {
-            // close namepsace
+            // close namespace
             *pofs << "} // closing anonymous implementation namespace\n\n";
 
             generateCompHelperDefinition(*pofs, options.implname,
                                          classname, services);
             generateCompFunctions(*pofs, nmspace);
         } else {
-            // close namepsace
+            // close namespace
             for (short i=0; i < nm; i++)
                 *pofs << "} ";
             *pofs << (nm > 0 ? "// closing namespace\n\n" : "\n");
@@ -1209,7 +1209,7 @@ void generateCalcAddin(ProgramOptions const & options,
         generateMethodBodies(*pofs, options, manager, interfaces, classname,
                              nmspace, propertyhelper);
 
-        // close namepsace
+        // close namespace
         *pofs << "} // closing anonymous implementation namespace\n\n";
 
         generateCompHelperDefinition(*pofs, options.implname, classname,
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index b58b6e20fb5f..2447ee40aeb9 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -669,7 +669,7 @@ void SectionPropertyMap::SetBorderDistance( const uno::Reference< beans::XProper
         nNewDist = nMargin - nDistance - nLineWidth;
         break;
     }
-    // Ensure corrent distance from page edge to text in cases not supported by us:
+    // Ensure correct distance from page edge to text in cases not supported by us:
     // when border is outside entire page area (eOffsetFrom == Text && nDistance > nMargin),
     // and when border is inside page body area (eOffsetFrom == Edge && nDistance > nMargin)
     if (nNewMargin < 0)
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index ba656fe41131..23c21d3c7314 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -2207,8 +2207,8 @@ void SvXMLImportFastNamespaceHandler::addNSDeclAttributes( rtl::Reference < comp
 
 void SvXMLImportFastNamespaceHandler::registerNamespace( const OUString& rNamespacePrefix, const OUString& rNamespaceURI )
 {
-    // Elements with default namespace parsed by FastParser have namepsace prefix.
-    // A default namespace needs to be registered with the prefix, to maintan the compatibility.
+    // Elements with default namespace parsed by FastParser have namespace prefix.
+    // A default namespace needs to be registered with the prefix, to maintain the compatibility.
     if ( rNamespacePrefix.isEmpty() )
         m_aNamespaceDefines.push_back( o3tl::make_unique<NamespaceDefine>(
                                     SvXMLImport::getNamespacePrefixFromURI( rNamespaceURI ), rNamespaceURI) );
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 15505f19f7b1..85b99ed0d7eb 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -919,7 +919,7 @@ void SvXMLExportPropertyMapper::_exportXML(
                         else
                         {
                             // check if there is a prefix registered for the
-                            // namepsace URI
+                            // namespace URI
                             nKey = pNamespaceMap->GetKeyByName( sNamespace );
                             if( XML_NAMESPACE_UNKNOWN == nKey )
                             {


More information about the Libreoffice-commits mailing list