diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-12-14 22:05:11 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-12-14 22:09:44 -0500 |
commit | 2d754521853b9ae89f4d9621150857f6592603b9 (patch) | |
tree | 549d01a7e170ca02de3a4a034f165cf41dc6b647 /sc/inc | |
parent | 4b3161e238e643e1538d3eb36ebdac3eeba1cda1 (diff) |
Fixed accidentally modified default view options.
It was unintentionally caused by
6ea8ea456cf5df267284278ecda42aa9b089a682.
Also made the default values easier to see.
Let's not do
foo1 =
foo2 =
foo3 = true;
type of assignment which may give the reader the wrong impression.
Let's do
foo1 = true;
foo2 = true;
foo3 = true;
instead.
Change-Id: I181b80d2aae96d65b662b187bc884913fec836db
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/viewopti.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx index 4bea442e0c12..07e8c04a35fc 100644 --- a/sc/inc/viewopti.hxx +++ b/sc/inc/viewopti.hxx @@ -86,7 +86,7 @@ public: void SetDefaults(); void SetOption( ScViewOption eOpt, sal_Bool bNew = sal_True ) { aOptArr[eOpt] = bNew; } - sal_Bool GetOption( ScViewOption eOpt ) const { return aOptArr[eOpt]; } + bool GetOption( ScViewOption eOpt ) const { return aOptArr[eOpt]; } void SetObjMode( ScVObjType eObj, ScVObjMode eMode ) { aModeArr[eObj] = eMode; } ScVObjMode GetObjMode( ScVObjType eObj ) const { return aModeArr[eObj]; } @@ -103,7 +103,7 @@ public: int operator!= ( const ScViewOptions& rOpt ) const { return !(operator==(rOpt)); } private: - sal_Bool aOptArr [MAX_OPT]; + bool aOptArr [MAX_OPT]; ScVObjMode aModeArr [MAX_TYPE]; Color aGridCol; String aGridColName; |