Kaydet (Commit) 6e025477 authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: Ic3883c0d490228ce607ac9296e45306718f03821
üst ab339269
...@@ -373,10 +373,10 @@ protected: ...@@ -373,10 +373,10 @@ protected:
ScFieldEditEngine* pEditEngine; ScFieldEditEngine* pEditEngine;
SvxEditEngineForwarder* pForwarder; SvxEditEngineForwarder* pForwarder;
ScCellEditSource* pOriginalSource; ScCellEditSource* pOriginalSource;
sal_Bool bDataValid; bool bDataValid;
sal_Bool bInUpdate; bool bInUpdate;
sal_Bool bDirty; bool bDirty;
sal_Bool bDoUpdate; bool bDoUpdate;
protected: protected:
virtual void GetCellText(const ScAddress& rCellPos, OUString& rText); virtual void GetCellText(const ScAddress& rCellPos, OUString& rText);
...@@ -398,9 +398,9 @@ public: ...@@ -398,9 +398,9 @@ public:
ScDocShell* GetDocShell() const { return pDocShell; } ScDocShell* GetDocShell() const { return pDocShell; }
const ScAddress& GetCellPos() const { return aCellPos; } const ScAddress& GetCellPos() const { return aCellPos; }
void SetDirty(sal_Bool bValue) { bDirty = bValue; } void SetDirty(bool bValue) { bDirty = bValue; }
sal_Bool IsDirty() const { return bDirty; } bool IsDirty() const { return bDirty; }
void SetDoUpdate(sal_Bool bValue) { bDoUpdate = bValue; } void SetDoUpdate(bool bValue) { bDoUpdate = bValue; }
}; };
class ScCellTextObj : public ScCellTextData, public SvxUnoText class ScCellTextObj : public ScCellTextData, public SvxUnoText
......
...@@ -922,7 +922,7 @@ ScCellTextData::ScCellTextData(ScDocShell* pDocSh, const ScAddress& rP) : ...@@ -922,7 +922,7 @@ ScCellTextData::ScCellTextData(ScDocShell* pDocSh, const ScAddress& rP) :
bDataValid( false ), bDataValid( false ),
bInUpdate( false ), bInUpdate( false ),
bDirty( false ), bDirty( false ),
bDoUpdate( sal_True ) bDoUpdate( true )
{ {
if (pDocShell) if (pDocShell)
pDocShell->GetDocument()->AddUnoObject(*this); pDocShell->GetDocument()->AddUnoObject(*this);
...@@ -1034,7 +1034,7 @@ void ScCellTextData::UpdateData() ...@@ -1034,7 +1034,7 @@ void ScCellTextData::UpdateData()
// during the own UpdateData call, bDataValid must not be reset, // during the own UpdateData call, bDataValid must not be reset,
// or things like attributes after the text would be lost // or things like attributes after the text would be lost
// (are not stored in the cell) // (are not stored in the cell)
bInUpdate = sal_True; // prevents bDataValid from being reset bInUpdate = true; // prevents bDataValid from being reset
pDocShell->GetDocFunc().PutData(aCellPos, *pEditEngine, true); // always as text pDocShell->GetDocFunc().PutData(aCellPos, *pEditEngine, true); // always as text
bInUpdate = false; bInUpdate = false;
...@@ -1042,7 +1042,7 @@ void ScCellTextData::UpdateData() ...@@ -1042,7 +1042,7 @@ void ScCellTextData::UpdateData()
} }
} }
else else
bDirty = sal_True; bDirty = true;
} }
void ScCellTextData::Notify( SfxBroadcaster&, const SfxHint& rHint ) void ScCellTextData::Notify( SfxBroadcaster&, const SfxHint& rHint )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment