summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/scanner.cxx14
-rw-r--r--basic/source/runtime/inputbox.cxx4
2 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 65c8e3f6c4e6..f6c87116dc68 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -121,19 +121,19 @@ static SbxDataType GetSuffixType( sal_Unicode c )
switch (c)
{
case '%':
- return SbxDataType(SbxINTEGER);
+ return SbxINTEGER;
case '&':
- return SbxDataType(SbxLONG);
+ return SbxLONG;
case '!':
- return SbxDataType(SbxSINGLE);
+ return SbxSINGLE;
case '#':
- return SbxDataType(SbxDOUBLE);
+ return SbxDOUBLE;
case '@':
- return SbxDataType(SbxCURRENCY);
+ return SbxCURRENCY;
case '$':
- return SbxDataType(SbxSTRING);
+ return SbxSTRING;
default:
- return SbxDataType(SbxVARIANT);
+ return SbxVARIANT;
}
}
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx
index 215c2a5a7835..69d42a664aef 100644
--- a/basic/source/runtime/inputbox.cxx
+++ b/basic/source/runtime/inputbox.cxx
@@ -91,9 +91,9 @@ void SvRTLInputBox::InitButtons( const Size& rDlgSize )
aOk->SetSizePixel( LogicToPixel( Size( 45, 15) ));
aCancel->SetSizePixel( LogicToPixel( Size( 45, 15) ));
Point aPos( rDlgSize.Width()-45-10, 5 );
- aOk->SetPosPixel( LogicToPixel( Point(aPos) ));
+ aOk->SetPosPixel( LogicToPixel( aPos ));
aPos.Y() += 16;
- aCancel->SetPosPixel( LogicToPixel( Point(aPos) ));
+ aCancel->SetPosPixel( LogicToPixel( aPos ));
aOk->SetClickHdl(LINK(this,SvRTLInputBox, OkHdl));
aCancel->SetClickHdl(LINK(this,SvRTLInputBox,CancelHdl));
}