X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=c%2B%2B%2Fcursesp.h;h=1eb90e9535484ca7c54b3c2e3e6fccec50dbbb9f;hb=a5fe3726f7d4374e9b1551b535c8617b423996f2;hp=eb9111b7aedd2ae82b06e6864a96aa78b599ba07;hpb=d30f99439fcc8d4bb4c38e5c4afb4f6555fc6ad4;p=ncurses.git diff --git a/c++/cursesp.h b/c++/cursesp.h index eb9111b7..1eb90e95 100644 --- a/c++/cursesp.h +++ b/c++/cursesp.h @@ -1,6 +1,7 @@ // * This makes emacs happy -*-Mode: C++;-*- +// vile:cppmode /**************************************************************************** - * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 2019-2020,2021 Thomas E. Dickey * * Copyright 1998-2012,2014 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -35,7 +36,7 @@ #ifndef NCURSES_CURSESP_H_incl #define NCURSES_CURSESP_H_incl 1 -// $Id: cursesp.h,v 1.34 2020/05/24 01:40:20 anonymous.maarten Exp $ +// $Id: cursesp.h,v 1.35 2021/04/17 18:11:08 tom Exp $ #include @@ -243,7 +244,7 @@ public: // This creates an user panel of the requested size with associated // user data pointed to by p_UserData. - NCursesUserPanel(const T* p_UserData = STATIC_CAST(T*)(0)) : NCursesPanel() + explicit NCursesUserPanel(const T* p_UserData = STATIC_CAST(T*)(0)) : NCursesPanel() { if (p) set_user(const_cast(reinterpret_cast(p_UserData)));