diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-18 14:09:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 07:58:15 +0200 |
commit | e61e4e56994c22221dcc0e9f4c2cb62fd63ac823 (patch) | |
tree | d38359c4e9a3de7112075244d7013907ce135d4f /svtools | |
parent | ba80f637b82ef5df7c650ec301ca9ebb5f678f44 (diff) |
clang-tidy readability-misleading-indentation
Change-Id: I4673fc7c694924b41d048a1918ddb8b0e0af1f79
Reviewed-on: https://gerrit.libreoffice.org/61935
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/transfer.cxx | 4 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 16 | ||||
-rw-r--r-- | svtools/source/uno/svtxgridcontrol.cxx | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index f6018223344c..190af932b858 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -1498,7 +1498,7 @@ void SvTreeListBox::SetTabs() { if( bHasButtons ) nCase = NODE_AND_CHECK_BUTTONS; - else + else nCase = CHECK_BUTTONS; } diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 206c75ba48b9..44c01059684d 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -1954,8 +1954,8 @@ bool TransferableDataHelper::GetFileList( FileList& rFileList ) rFileList.AppendFile( OStringToOUString(aDiskString, RTL_TEXTENCODING_UTF8) ); bRet = true; - } - else + } + else bRet = ( ReadFileList( *xStm, rFileList ).GetError() == ERRCODE_NONE ); } } diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index 99428e8b1317..eefe226838d4 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -1446,24 +1446,24 @@ namespace svt { namespace table int prevRow = getRowSelectedNumber(m_aSelectedRows, m_nCurRow); int nextRow = getRowSelectedNumber(m_aSelectedRows, m_nCurRow-1); if(prevRow>-1) - { + { //if m_nCurRow isn't the upper one, can move up, otherwise not if(m_nCurRow>0) m_nCurRow--; - else + else return bSuccess = true; //if nextRow already selected, deselect it, otherwise select it - if(nextRow>-1 && m_aSelectedRows[nextRow] == m_nCurRow) - { + if(nextRow>-1 && m_aSelectedRows[nextRow] == m_nCurRow) + { m_aSelectedRows.erase(m_aSelectedRows.begin()+prevRow); invalidateRow( m_nCurRow + 1 ); - } - else + } + else { m_aSelectedRows.push_back(m_nCurRow); invalidateRow( m_nCurRow ); - } - } + } + } else { if(m_nCurRow>0) diff --git a/svtools/source/uno/svtxgridcontrol.cxx b/svtools/source/uno/svtxgridcontrol.cxx index 1d92c659623a..5841480b5f7d 100644 --- a/svtools/source/uno/svtxgridcontrol.cxx +++ b/svtools/source/uno/svtxgridcontrol.cxx @@ -793,8 +793,8 @@ void SVTXGridControl::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent { // TODO: this doesn't belong here. It belongs into the TableControl/_Impl, so A11Y also // works when the control is used outside the UNO context - if ( pTable->GetRowCount()>0 ) - { + if ( pTable->GetRowCount()>0 ) + { pTable->commitCellEventIfAccessibleAlive( AccessibleEventId::STATE_CHANGED, makeAny( AccessibleStateType::FOCUSED ), @@ -813,7 +813,7 @@ void SVTXGridControl::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent makeAny( AccessibleStateType::FOCUSED ), Any() ); - } + } } break; |