[Libreoffice-commits] core.git: chart2/qa sw/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 31 08:13:57 UTC 2020


 chart2/qa/extras/chart2dump/chart2dump.cxx |   12 ++++++------
 sw/source/filter/html/htmlatr.cxx          |    6 +++---
 sw/source/filter/html/wrthtml.cxx          |    4 ++--
 sw/source/filter/html/wrthtml.hxx          |    2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit c9c2ce986de8ddf507bad1689d32d831875109f5
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Aug 28 13:22:52 2020 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Mon Aug 31 10:13:15 2020 +0200

    Fix typo in code
    
    It passed "make check" on Linux
    
    Change-Id: Id8f549f69b5007ced62401130894f795dde8fb80
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101616
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx
index 6defbf6fc866..7bb98b648681 100644
--- a/chart2/qa/extras/chart2dump/chart2dump.cxx
+++ b/chart2/qa/extras/chart2dump/chart2dump.cxx
@@ -227,22 +227,22 @@ protected:
 
     OUString sequenceToOneLineString(const uno::Sequence<OUString>& rSeq)
     {
-        OUStringBuffer aBufer;
+        OUStringBuffer aBuffer;
         for (const OUString& seqItem : rSeq)
         {
-            aBufer.append(seqItem).append(";");
+            aBuffer.append(seqItem).append(";");
         }
-        return aBufer.makeStringAndClear();
+        return aBuffer.makeStringAndClear();
     }
 
     OUString doubleVectorToOneLineString(const std::vector<double>& rVector)
     {
-        OUStringBuffer aBufer;
+        OUStringBuffer aBuffer;
         for (const double& vectorItem : rVector)
         {
-            aBufer.append(OUString::number(vectorItem)).append(";");
+            aBuffer.append(OUString::number(vectorItem)).append(";");
         }
-        return aBufer.makeStringAndClear();
+        return aBuffer.makeStringAndClear();
     }
 
     OUString transformationToOneLineString(const drawing::HomogenMatrix3& rTransform)
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index e543026e2a2d..dd55897b2d8d 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -2226,7 +2226,7 @@ Writer& OutHTML_SwTextNode( Writer& rWrt, const SwContentNode& rNode )
 
     // now it's a good opportunity again for an LF - if it is still allowed
     if( rHTMLWrt.m_bLFPossible &&
-        rHTMLWrt.GetLineLen() >= rHTMLWrt.m_nWhishLineLen )
+        rHTMLWrt.GetLineLen() >= rHTMLWrt.m_nWishLineLen )
     {
         rHTMLWrt.OutNewLine();
     }
@@ -2463,8 +2463,8 @@ Writer& OutHTML_SwTextNode( Writer& rWrt, const SwContentNode& rNode )
                         nWordLen = nEnd;
                     nWordLen -= nStrPos;
 
-                    if( nLineLen >= rHTMLWrt.m_nWhishLineLen ||
-                        (nLineLen+nWordLen) >= rHTMLWrt.m_nWhishLineLen )
+                    if( nLineLen >= rHTMLWrt.m_nWishLineLen ||
+                        (nLineLen+nWordLen) >= rHTMLWrt.m_nWishLineLen )
                     {
                         HTMLOutFuncs::FlushToAscii( rWrt.Strm(), aContext );
                         rHTMLWrt.OutNewLine();
diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx
index 877d1a1c63cb..d89515215236 100644
--- a/sw/source/filter/html/wrthtml.cxx
+++ b/sw/source/filter/html/wrthtml.cxx
@@ -114,7 +114,7 @@ SwHTMLWriter::SwHTMLWriter( const OUString& rBaseURL, const OUString& rFilterOpt
     , m_nDfltTopMargin(0)
     , m_nDfltBottomMargin(0)
     , m_nIndentLvl(0)
-    , m_nWhishLineLen(0)
+    , m_nWishLineLen(0)
     , m_nDefListLvl(0)
     , m_nDefListMargin(0)
     , m_nHeaderFooterSpace(0)
@@ -357,7 +357,7 @@ ErrCode SwHTMLWriter::WriteStream()
     m_bFirstCSS1Property = m_bFirstCSS1Rule = false;
     m_bCSS1IgnoreFirstPageDesc = false;
     m_nIndentLvl = 0;
-    m_nWhishLineLen = 70;
+    m_nWishLineLen = 70;
     m_nLastLFPos = 0;
     m_nDefListLvl = 0;
     m_nDefListMargin = ((m_xTemplate.is() && !m_bCfgOutStyles) ? m_xTemplate.get() : m_pDoc)
diff --git a/sw/source/filter/html/wrthtml.hxx b/sw/source/filter/html/wrthtml.hxx
index ffc416f22662..f3d9ec706149 100644
--- a/sw/source/filter/html/wrthtml.hxx
+++ b/sw/source/filter/html/wrthtml.hxx
@@ -320,7 +320,7 @@ public:
     sal_uInt16 m_nDfltTopMargin;          // defaults which doesn't have to be
     sal_uInt16 m_nDfltBottomMargin;       // written (from template)
     sal_uInt16 m_nIndentLvl;              // How far is it indented?
-    sal_Int32 m_nWhishLineLen;            // How long can a line be?
+    sal_Int32 m_nWishLineLen;             // How long can a line be?
     sal_uInt16 m_nDefListLvl;             // which DL level exists now
     sal_Int32  m_nDefListMargin;          // How far is the indentation in DL
     sal_uInt16 m_nHeaderFooterSpace;


More information about the Libreoffice-commits mailing list