summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-19 15:17:37 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:34 +0200
commit26f2da07b1c6074e519d28557a3d1d5518ff6cb4 (patch)
tree6981a11bc7e6fc897771277a7b60a6e3a88cff29 /vcl/source/app
parentd9632a6effabe8554c4e7e05ee24c16acd0f4f95 (diff)
loplugin: cstylecast
Change-Id: I58ec00d6f8a4cc6188877db1330c5e32c9db12e5
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/dbggui.cxx26
-rw-r--r--vcl/source/app/help.cxx2
-rw-r--r--vcl/source/app/unohelp2.cxx2
3 files changed, 15 insertions, 15 deletions
diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx
index a35d62dead31..9b29b001e2f1 100644
--- a/vcl/source/app/dbggui.cxx
+++ b/vcl/source/app/dbggui.cxx
@@ -563,14 +563,14 @@ void DbgDialogTest( vcl::Window* pWindow )
switch( pChild->GetType() )
{
case WINDOW_RADIOBUTTON:
- aWidth = ((RadioButton*)pChild)->CalcMinimumSize(0).Width();
+ aWidth = static_cast<RadioButton*>(pChild)->CalcMinimumSize(0).Width();
break;
case WINDOW_CHECKBOX:
case WINDOW_TRISTATEBOX:
- aWidth = ((CheckBox*)pChild)->CalcMinimumSize(0).Width();
+ aWidth = static_cast<CheckBox*>(pChild)->CalcMinimumSize(0).Width();
break;
case WINDOW_PUSHBUTTON:
- aWidth = ((PushButton*)pChild)->CalcMinimumSize(0).Width();
+ aWidth = static_cast<PushButton*>(pChild)->CalcMinimumSize(0).Width();
break;
default: break;
}
@@ -666,61 +666,61 @@ void DbgDialogTest( vcl::Window* pWindow )
bool bMaxWarning = false;
if ( pChild->GetType() == WINDOW_NUMERICFIELD )
{
- NumericField* pField = (NumericField*)pChild;
+ NumericField* pField = static_cast<NumericField*>(pChild);
if ( pField->GetMax() == LONG_MAX )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_METRICFIELD )
{
- MetricField* pField = (MetricField*)pChild;
+ MetricField* pField = static_cast<MetricField*>(pChild);
if ( pField->GetMax() == LONG_MAX )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_CURRENCYFIELD )
{
- CurrencyField* pField = (CurrencyField*)pChild;
+ CurrencyField* pField = static_cast<CurrencyField*>(pChild);
if ( pField->GetMax() == LONG_MAX )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_TIMEFIELD )
{
- TimeField* pField = (TimeField*)pChild;
+ TimeField* pField = static_cast<TimeField*>(pChild);
if ( pField->GetMax() == Time( 23, 59, 59, 99 ) )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_DATEFIELD )
{
- DateField* pField = (DateField*)pChild;
+ DateField* pField = static_cast<DateField*>(pChild);
if ( pField->GetMax() == Date( 31, 12, 9999 ) )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_NUMERICBOX )
{
- NumericBox* pBox = (NumericBox*)pChild;
+ NumericBox* pBox = static_cast<NumericBox*>(pChild);
if ( pBox->GetMax() == LONG_MAX )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_METRICBOX )
{
- MetricBox* pBox = (MetricBox*)pChild;
+ MetricBox* pBox = static_cast<MetricBox*>(pChild);
if ( pBox->GetMax() == LONG_MAX )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_CURRENCYBOX )
{
- CurrencyBox* pBox = (CurrencyBox*)pChild;
+ CurrencyBox* pBox = static_cast<CurrencyBox*>(pChild);
if ( pBox->GetMax() == LONG_MAX )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_TIMEBOX )
{
- TimeBox* pBox = (TimeBox*)pChild;
+ TimeBox* pBox = static_cast<TimeBox*>(pChild);
if ( pBox->GetMax() == Time( 23, 59, 59, 99 ) )
bMaxWarning = true;
}
else if ( pChild->GetType() == WINDOW_DATEBOX )
{
- DateBox* pBox = (DateBox*)pChild;
+ DateBox* pBox = static_cast<DateBox*>(pChild);
if ( pBox->GetMax() == Date( 31, 12, 9999 ) )
bMaxWarning = true;
}
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index 5a475e77213e..5d0b1e382f01 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -229,7 +229,7 @@ void Help::UpdateTip( sal_uIntPtr nId, vcl::Window* pParent, const Rectangle& rS
void Help::HideTip( sal_uLong nId )
{
- HelpTextWindow* pHelpWin = (HelpTextWindow*)nId;
+ HelpTextWindow* pHelpWin = reinterpret_cast<HelpTextWindow*>(nId);
vcl::Window* pFrameWindow = pHelpWin->ImplGetFrameWindow();
pHelpWin->Hide();
// trigger update, so that a Paint is instantly triggered since we do not save the background
diff --git a/vcl/source/app/unohelp2.cxx b/vcl/source/app/unohelp2.cxx
index 7dc274cffb00..8e5def4411ff 100644
--- a/vcl/source/app/unohelp2.cxx
+++ b/vcl/source/app/unohelp2.cxx
@@ -76,7 +76,7 @@ namespace vcl { namespace unohelper {
sal_uLong nT = SotExchange::GetFormat( rFlavor );
if ( nT == SOT_FORMAT_STRING )
{
- aAny <<= (OUString)GetString();
+ aAny <<= GetString();
}
else
{