BMenuField: use anonymous namespace for internal class.

As suggested by korli, this is indeed a better way to hide internal
classes and make them completely unreachable from outside the cpp file
they are defined in.
This commit is contained in:
Adrien Destugues 2020-12-19 10:54:06 +01:00
parent 8a72ba1b54
commit 015d6c1306

View File

@ -163,7 +163,7 @@ struct BMenuField::LayoutData {
// #pragma mark - MouseDownFilter
namespace BPrivate {
namespace {
class MouseDownFilter : public BMessageFilter
{
@ -1025,7 +1025,7 @@ BMenuField::InitObject(const char* label)
fFixedSizeMB = false;
fMenuTaskID = -1;
fLayoutData = new LayoutData;
fMouseDownFilter = new BPrivate::MouseDownFilter();
fMouseDownFilter = new MouseDownFilter();
SetLabel(label);