[Libreoffice-commits] core.git: dbaccess/source
Julien Nabet
serval2412 at yahoo.fr
Mon Jan 2 15:13:31 UTC 2017
dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx | 12 +++---
dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx | 24 ++++++-------
2 files changed, 18 insertions(+), 18 deletions(-)
New commits:
commit 4b28e3b687cbffb4f3ace518bb5e6ef19c6b0b1d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Jan 2 15:30:17 2017 +0100
Typo: m_nColumnPostion->m_nColumnPosition
Change-Id: Iab83a89b5cfa1ca379cb59366682d5d2adeb0e31
Reviewed-on: https://gerrit.libreoffice.org/32645
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx
index cc6d316..f0963c1 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx
@@ -31,7 +31,7 @@ namespace dbaui
{
protected:
VclPtr<OSelectionBrowseBox> pOwner;
- sal_uInt16 m_nColumnPostion;
+ sal_uInt16 m_nColumnPosition;
virtual void Undo() override = 0;
virtual void Redo() override = 0;
@@ -42,9 +42,9 @@ namespace dbaui
inline void SetColumnPosition(sal_uInt16 _nColumnPostion)
{
- m_nColumnPostion = _nColumnPostion;
- OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
- OSL_ENSURE(m_nColumnPostion < pOwner->GetColumnCount(),"Position outside the column count!");
+ m_nColumnPosition = _nColumnPostion;
+ OSL_ENSURE(m_nColumnPosition != BROWSER_INVALIDID,"Column position was not set add the undo action!");
+ OSL_ENSURE(m_nColumnPosition < pOwner->GetColumnCount(),"Position outside the column count!");
}
};
@@ -102,7 +102,7 @@ namespace dbaui
class OTabFieldDelUndoAct : public OTabFieldUndoAct
{
protected:
- virtual void Undo() override { pOwner->EnterUndoMode();pOwner->InsertColumn(pDescr, m_nColumnPostion);pOwner->LeaveUndoMode(); }
+ virtual void Undo() override { pOwner->EnterUndoMode();pOwner->InsertColumn(pDescr, m_nColumnPosition);pOwner->LeaveUndoMode(); }
virtual void Redo() override { pOwner->EnterUndoMode();pOwner->RemoveColumn(pDescr->GetColumnId());pOwner->LeaveUndoMode(); }
public:
@@ -116,7 +116,7 @@ namespace dbaui
{
protected:
virtual void Undo() override { pOwner->EnterUndoMode();pOwner->RemoveColumn(pDescr->GetColumnId());pOwner->LeaveUndoMode();}
- virtual void Redo() override { pOwner->EnterUndoMode();pOwner->InsertColumn(pDescr, m_nColumnPostion);pOwner->LeaveUndoMode();}
+ virtual void Redo() override { pOwner->EnterUndoMode();pOwner->InsertColumn(pDescr, m_nColumnPosition);pOwner->LeaveUndoMode();}
public:
explicit OTabFieldCreateUndoAct(OSelectionBrowseBox* pSelBrwBox) : OTabFieldUndoAct(pSelBrwBox, STR_QUERY_UNDO_TABFIELDCREATE) { }
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
index 7bb732a..079d7a3 100644
--- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
@@ -30,7 +30,7 @@ using namespace dbaui;
OQueryDesignFieldUndoAct::OQueryDesignFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, sal_uInt16 nCommentID)
: OCommentUndoAction(nCommentID)
, pOwner(pSelBrwBox)
- , m_nColumnPostion(BROWSER_INVALIDID)
+ , m_nColumnPosition(BROWSER_INVALIDID)
{
}
@@ -73,11 +73,11 @@ OQueryTabWinUndoAct::~OQueryTabWinUndoAct()
void OTabFieldCellModifiedUndoAct::Undo()
{
pOwner->EnterUndoMode();
- OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
- OSL_ENSURE(m_nColumnPostion < pOwner->GetColumnCount(),"Position outside the column count!");
- if ( m_nColumnPostion != BROWSER_INVALIDID )
+ OSL_ENSURE(m_nColumnPosition != BROWSER_INVALIDID,"Column position was not set add the undo action!");
+ OSL_ENSURE(m_nColumnPosition < pOwner->GetColumnCount(),"Position outside the column count!");
+ if ( m_nColumnPosition != BROWSER_INVALIDID )
{
- sal_uInt16 nColumnId = pOwner->GetColumnId(m_nColumnPostion);
+ sal_uInt16 nColumnId = pOwner->GetColumnId(m_nColumnPosition);
OUString strNext = pOwner->GetCellContents(m_nCellIndex, nColumnId);
pOwner->SetCellContents(m_nCellIndex, nColumnId, m_strNextCellContents);
m_strNextCellContents = strNext;
@@ -88,10 +88,10 @@ void OTabFieldCellModifiedUndoAct::Undo()
void OTabFieldSizedUndoAct::Undo()
{
pOwner->EnterUndoMode();
- OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
- if ( m_nColumnPostion != BROWSER_INVALIDID )
+ OSL_ENSURE(m_nColumnPosition != BROWSER_INVALIDID,"Column position was not set add the undo action!");
+ if ( m_nColumnPosition != BROWSER_INVALIDID )
{
- sal_uInt16 nColumnId = pOwner->GetColumnId(m_nColumnPostion);
+ sal_uInt16 nColumnId = pOwner->GetColumnId(m_nColumnPosition);
long nNextWidth = pOwner->GetColumnWidth(nColumnId);
pOwner->SetColWidth(nColumnId, m_nNextWidth);
m_nNextWidth = nNextWidth;
@@ -102,14 +102,14 @@ void OTabFieldSizedUndoAct::Undo()
void OTabFieldMovedUndoAct::Undo()
{
pOwner->EnterUndoMode();
- OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
- if ( m_nColumnPostion != BROWSER_INVALIDID )
+ OSL_ENSURE(m_nColumnPosition != BROWSER_INVALIDID,"Column position was not set add the undo action!");
+ if ( m_nColumnPosition != BROWSER_INVALIDID )
{
sal_uInt16 nId = pDescr->GetColumnId();
sal_uInt16 nOldPos = pOwner->GetColumnPos(nId);
- pOwner->SetColumnPos(nId,m_nColumnPostion);
+ pOwner->SetColumnPos(nId,m_nColumnPosition);
pOwner->ColumnMoved(nId,false);
- m_nColumnPostion = nOldPos;
+ m_nColumnPosition = nOldPos;
}
pOwner->LeaveUndoMode();
}
More information about the Libreoffice-commits
mailing list