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:
parent
8a72ba1b54
commit
015d6c1306
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user