Skip to content
Snippets Groups Projects
Commit 04478e89 authored by Vassil Vassilev's avatar Vassil Vassilev
Browse files

Do not require the user to cast pointers to Long_t.

parent 1c907599
Branches
Tags
No related merge requests found
...@@ -28,7 +28,7 @@ protected: ...@@ -28,7 +28,7 @@ protected:
virtual void SetArg(const char *) = 0; virtual void SetArg(const char *) = 0;
// We should 'widen' all types to one of the SetArg overloads. // We should 'widen' all types to one of the SetArg overloads.
template <class T, class = typename std::enable_if<std::is_integral<T>::value>::type> template <class T, class = typename std::enable_if<std::is_scalar<T>::value>::type>
void SetArg(const T& val) void SetArg(const T& val)
{ {
if (std::is_signed<T>::value) if (std::is_signed<T>::value)
......
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
virtual void SavePrimitive(std::ostream &out, Option_t *option = ""); virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
virtual Bool_t ProcessMessage(Long_t cmd, Long_t parm1, Long_t parm2); virtual Bool_t ProcessMessage(Long_t cmd, Long_t parm1, Long_t parm2);
virtual void Selected(TGShutterItem *item) { Emit(" Selected(TGShutterItem*)", (Long_t)item); } //*SIGNAL* virtual void Selected(TGShutterItem *item) { Emit(" Selected(TGShutterItem*)", item); } //*SIGNAL*
ClassDef(TGShutter,0) // Shutter widget ClassDef(TGShutter,0) // Shutter widget
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment