summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-24 12:00:51 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-24 10:51:11 +0000
commit2b7109a12ab772bf53766d6e06b422c8e687d482 (patch)
treefb8bb9714a2534ea01908d07156bfa765ae583d4 /basctl/source
parent6247ff3fed5373a0079f899e816743909d0a62f8 (diff)
loplugin:singlevalfields in basctl
Change-Id: Ia533309bb0e7f33b492b230a372916c0c6fd6ec3 Reviewed-on: https://gerrit.libreoffice.org/26631 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/breakpoint.cxx2
-rw-r--r--basctl/source/basicide/breakpoint.hxx2
-rw-r--r--basctl/source/dlged/dlged.cxx6
-rw-r--r--basctl/source/inc/dlged.hxx2
4 files changed, 3 insertions, 9 deletions
diff --git a/basctl/source/basicide/breakpoint.cxx b/basctl/source/basicide/breakpoint.cxx
index 411b99475d6d..b3e6a70e1617 100644
--- a/basctl/source/basicide/breakpoint.cxx
+++ b/basctl/source/basicide/breakpoint.cxx
@@ -61,7 +61,7 @@ void BreakPointList::InsertSorted(BreakPoint* pNewBrk)
{
if ( pNewBrk->nLine <= (*i)->nLine )
{
- DBG_ASSERT( ( (*i)->nLine != pNewBrk->nLine ) || pNewBrk->bTemp, "BreakPoint existiert schon!" );
+ DBG_ASSERT( (*i)->nLine != pNewBrk->nLine, "BreakPoint existiert schon!" );
maBreakPoints.insert( i, pNewBrk );
return;
}
diff --git a/basctl/source/basicide/breakpoint.hxx b/basctl/source/basicide/breakpoint.hxx
index 926729795cc0..8431c3039af3 100644
--- a/basctl/source/basicide/breakpoint.hxx
+++ b/basctl/source/basicide/breakpoint.hxx
@@ -33,14 +33,12 @@ namespace basctl
struct BreakPoint
{
bool bEnabled;
- bool bTemp;
size_t nLine;
size_t nStopAfter;
size_t nHitCount;
explicit BreakPoint(size_t nL)
: bEnabled(true)
- , bTemp(false)
, nLine(nL)
, nStopAfter(0)
, nHitCount(0)
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index fc4fab087f60..06669a45700d 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -192,8 +192,6 @@ DlgEditor::DlgEditor (
,eActObj( OBJ_DLG_PUSHBUTTON )
,bFirstDraw(false)
,aGridSize( 100, 100 ) // 100TH_MM
- ,bGridVisible(false)
- ,bGridSnap(true)
,bCreateOK(true)
,bDialogModelChanged(false)
,aMarkIdle("basctl DlgEditor Mark")
@@ -233,8 +231,8 @@ DlgEditor::DlgEditor (
pDlgEdView->SetGridCoarse( aGridSize );
pDlgEdView->SetSnapGridWidth(Fraction(aGridSize.Width(), 1), Fraction(aGridSize.Height(), 1));
- pDlgEdView->SetGridSnap( bGridSnap );
- pDlgEdView->SetGridVisible( bGridVisible );
+ pDlgEdView->SetGridSnap( true );
+ pDlgEdView->SetGridVisible( false );
pDlgEdView->SetDragStripes(false);
pDlgEdView->SetDesignMode();
diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx
index 82ad3530debe..76a0f0c2d23c 100644
--- a/basctl/source/inc/dlged.hxx
+++ b/basctl/source/inc/dlged.hxx
@@ -126,8 +126,6 @@ private:
sal_uInt16 eActObj;
bool bFirstDraw;
Size aGridSize;
- bool bGridVisible;
- bool bGridSnap;
bool bCreateOK;
Rectangle aPaintRect;
bool bDialogModelChanged;