summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/a11y
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:15 +0100
commit72e3c234104a17566c0354beacc6d182234f1e5f (patch)
tree676e0c1a21ac6b107938d486cbe0b4201b5d4f1c /vcl/unx/gtk/a11y
parent0ffaf416ba6ec1d5955008467a5bf46a40ac6640 (diff)
More loplugin:cstylecast: vcl
Change-Id: I74d1555b461fd8ea316380423fcde2d167714170
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r--vcl/unx/gtk/a11y/atkcomponent.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkfactory.cxx4
-rw-r--r--vcl/unx/gtk/a11y/atkhypertext.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atktextattributes.cxx4
-rw-r--r--vcl/unx/gtk/a11y/atkutil.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkwindow.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.cxx4
7 files changed, 10 insertions, 10 deletions
diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx
index a56aebe69621..c062e12e2415 100644
--- a/vcl/unx/gtk/a11y/atkcomponent.cxx
+++ b/vcl/unx/gtk/a11y/atkcomponent.cxx
@@ -287,7 +287,7 @@ component_wrapper_add_focus_handler (AtkComponent *component,
gulong ret;
guint signal_id;
- match_type = (GSignalMatchType) (G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC);
+ match_type = GSignalMatchType(G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC);
signal_id = g_signal_lookup( "focus-event", ATK_TYPE_OBJECT );
ret = g_signal_handler_find( component, match_type, signal_id, 0, nullptr,
diff --git a/vcl/unx/gtk/a11y/atkfactory.cxx b/vcl/unx/gtk/a11y/atkfactory.cxx
index 6ba88500913f..5c163cd38ece 100644
--- a/vcl/unx/gtk/a11y/atkfactory.cxx
+++ b/vcl/unx/gtk/a11y/atkfactory.cxx
@@ -69,7 +69,7 @@ atk_noop_object_wrapper_get_type()
nullptr
} ;
- type = g_type_register_static (ATK_TYPE_OBJECT, "OOoAtkNoOpObj", &typeInfo, (GTypeFlags)0) ;
+ type = g_type_register_static (ATK_TYPE_OBJECT, "OOoAtkNoOpObj", &typeInfo, GTypeFlags(0)) ;
}
return type;
}
@@ -184,7 +184,7 @@ wrapper_factory_get_type()
t = g_type_register_static (
ATK_TYPE_OBJECT_FACTORY, "OOoAtkObjectWrapperFactory",
- &tinfo, (GTypeFlags) 0);
+ &tinfo, GTypeFlags(0));
}
return t;
diff --git a/vcl/unx/gtk/a11y/atkhypertext.cxx b/vcl/unx/gtk/a11y/atkhypertext.cxx
index 637842bfe123..d566f441eee5 100644
--- a/vcl/unx/gtk/a11y/atkhypertext.cxx
+++ b/vcl/unx/gtk/a11y/atkhypertext.cxx
@@ -179,7 +179,7 @@ hyper_link_get_type()
type = g_type_register_static (ATK_TYPE_HYPERLINK,
"OOoAtkObjHyperLink", &tinfo,
- (GTypeFlags)0);
+ GTypeFlags(0));
g_type_add_interface_static (type, ATK_TYPE_ACTION,
&atk_action_info);
}
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx
index a8c7c8e3cdae..5582215b8cb4 100644
--- a/vcl/unx/gtk/a11y/atktextattributes.cxx
+++ b/vcl/unx/gtk/a11y/atktextattributes.cxx
@@ -387,7 +387,7 @@ Adjust2Justification(const uno::Any& rAny)
{
const gchar * value = nullptr;
- switch( (style::ParagraphAdjust)rAny.get<short>() )
+ switch( static_cast<style::ParagraphAdjust>(rAny.get<short>()) )
{
case style::ParagraphAdjust_LEFT:
value = "left";
@@ -432,7 +432,7 @@ Justification2Adjust( uno::Any& rAny, const gchar * value )
else
return false;
- rAny <<= (short)nParagraphAdjust;
+ rAny <<= static_cast<short>(nParagraphAdjust);
return true;
}
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index 7ad94e9d443a..16271c9696c5 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -781,7 +781,7 @@ ooo_atk_util_get_type()
nullptr
} ;
- type = g_type_register_static (parent_type, "OOoUtil", &typeInfo, (GTypeFlags)0) ;
+ type = g_type_register_static (parent_type, "OOoUtil", &typeInfo, GTypeFlags(0)) ;
}
return type;
diff --git a/vcl/unx/gtk/a11y/atkwindow.cxx b/vcl/unx/gtk/a11y/atkwindow.cxx
index 581e81d23db4..930702f92b27 100644
--- a/vcl/unx/gtk/a11y/atkwindow.cxx
+++ b/vcl/unx/gtk/a11y/atkwindow.cxx
@@ -304,7 +304,7 @@ ooo_window_wrapper_get_type()
nullptr
} ;
- type = g_type_register_static (parent_type, "OOoWindowAtkObject", &typeInfo, (GTypeFlags)0) ;
+ type = g_type_register_static (parent_type, "OOoWindowAtkObject", &typeInfo, GTypeFlags(0)) ;
}
return type;
diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx
index 5d397b6ccc92..33ec9caabb14 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.cxx
@@ -654,7 +654,7 @@ atk_object_wrapper_get_type()
} ;
type = g_type_register_static (ATK_TYPE_OBJECT,
"OOoAtkObj",
- &typeInfo, (GTypeFlags)0) ;
+ &typeInfo, GTypeFlags(0)) ;
}
return type;
}
@@ -763,7 +763,7 @@ ensureTypeFor( uno::XInterface *pAccessible )
} ;
nType = g_type_register_static( ATK_TYPE_OBJECT_WRAPPER,
aTypeName.getStr(), &aTypeInfo,
- (GTypeFlags)0 ) ;
+ GTypeFlags(0) ) ;
for( int j = 0; j < aTypeTableSize; j++ )
if( bTypes[j] )