writerfilter/source/rtftok/rtfdispatchflag.cxx |   30 ++++++++++++-------------
 1 file changed, 15 insertions(+), 15 deletions(-)

New commits:
commit c40df02caa6b5473f80bd8c2ed14763dac2076cd
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed Dec 15 20:16:05 2021 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Dec 16 09:07:57 2021 +0100

    writerfilter: some param -> sprm in rtftok
    
    The structure for these properties is to have a list like "paragraph
    properties", which then has keys (e.g. NS_ooxml::LN_CT_PrBase_pBdr for
    border), which may have sub-keys (e.g. NS_ooxml::LN_CT_PBdr_top), and
    finally some value.
    
    Stop calling sub-keys "parameters"; the real parameter will be some
    writerfilter::Value subclass.
    
    This is just meant to make the code more readable, no functional changes
    intended.
    
    Change-Id: Ie63b3216cafa6fcd0ad1ee8cf990cd7982ab7fb4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126894
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/writerfilter/source/rtftok/rtfdispatchflag.cxx 
b/writerfilter/source/rtftok/rtfdispatchflag.cxx
index 2acb4d59f977..6df2b588a016 100644
--- a/writerfilter/source/rtftok/rtfdispatchflag.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchflag.cxx
@@ -624,22 +624,22 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword 
nKeyword)
             switch (nKeyword)
             {
                 case RTFKeyword::CLBRDRT:
-                    nParam = NS_ooxml::LN_CT_TcBorders_top;
+                    nSprm = NS_ooxml::LN_CT_TcBorders_top;
                     break;
                 case RTFKeyword::CLBRDRL:
-                    nParam = NS_ooxml::LN_CT_TcBorders_left;
+                    nSprm = NS_ooxml::LN_CT_TcBorders_left;
                     break;
                 case RTFKeyword::CLBRDRB:
-                    nParam = NS_ooxml::LN_CT_TcBorders_bottom;
+                    nSprm = NS_ooxml::LN_CT_TcBorders_bottom;
                     break;
                 case RTFKeyword::CLBRDRR:
-                    nParam = NS_ooxml::LN_CT_TcBorders_right;
+                    nSprm = NS_ooxml::LN_CT_TcBorders_right;
                     break;
                 default:
                     break;
             }
             putNestedSprm(m_aStates.top().getTableCellSprms(), 
NS_ooxml::LN_CT_TcPrBase_tcBorders,
-                          nParam, pValue);
+                          nSprm, pValue);
             m_aStates.top().setBorderState(RTFBorderState::CELL);
         }
         break;
@@ -654,22 +654,22 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword 
nKeyword)
             switch (nKeyword)
             {
                 case RTFKeyword::PGBRDRT:
-                    nParam = NS_ooxml::LN_CT_PageBorders_top;
+                    nSprm = NS_ooxml::LN_CT_PageBorders_top;
                     break;
                 case RTFKeyword::PGBRDRL:
-                    nParam = NS_ooxml::LN_CT_PageBorders_left;
+                    nSprm = NS_ooxml::LN_CT_PageBorders_left;
                     break;
                 case RTFKeyword::PGBRDRB:
-                    nParam = NS_ooxml::LN_CT_PageBorders_bottom;
+                    nSprm = NS_ooxml::LN_CT_PageBorders_bottom;
                     break;
                 case RTFKeyword::PGBRDRR:
-                    nParam = NS_ooxml::LN_CT_PageBorders_right;
+                    nSprm = NS_ooxml::LN_CT_PageBorders_right;
                     break;
                 default:
                     break;
             }
             putNestedSprm(m_aStates.top().getSectionSprms(),
-                          NS_ooxml::LN_EG_SectPrContents_pgBorders, nParam, 
pValue);
+                          NS_ooxml::LN_EG_SectPrContents_pgBorders, nSprm, 
pValue);
             m_aStates.top().setBorderState(RTFBorderState::PAGE);
         }
         break;
@@ -684,21 +684,21 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword 
nKeyword)
             switch (nKeyword)
             {
                 case RTFKeyword::BRDRT:
-                    nParam = getParagraphBorder(0);
+                    nSprm = getParagraphBorder(0);
                     break;
                 case RTFKeyword::BRDRL:
-                    nParam = getParagraphBorder(1);
+                    nSprm = getParagraphBorder(1);
                     break;
                 case RTFKeyword::BRDRB:
-                    nParam = getParagraphBorder(2);
+                    nSprm = getParagraphBorder(2);
                     break;
                 case RTFKeyword::BRDRR:
-                    nParam = getParagraphBorder(3);
+                    nSprm = getParagraphBorder(3);
                     break;
                 default:
                     break;
             }
-            putNestedSprm(m_aStates.top().getParagraphSprms(), 
NS_ooxml::LN_CT_PrBase_pBdr, nParam,
+            putNestedSprm(m_aStates.top().getParagraphSprms(), 
NS_ooxml::LN_CT_PrBase_pBdr, nSprm,
                           pValue);
             m_aStates.top().setBorderState(RTFBorderState::PARAGRAPH);
         }

Reply via email to