Skip to content

Commit

Permalink
InitCheck(): call base class.
Browse files Browse the repository at this point in the history
Also remove unused fMessenger.
  • Loading branch information
jackburton79 committed Nov 18, 2024
1 parent 999380d commit 580af39
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions inputfilter/BSCInputFilter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2013-2021, Stefano Ceccherini <[email protected]>
* Copyright 2013-2024, Stefano Ceccherini <[email protected]>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <InputServerFilter.h>
Expand All @@ -25,17 +25,20 @@ class BSCInputFilter : public BInputServerFilter {
private:
BLooper* fLooper;
BLocker fLocker;
BMessenger fMessenger;
node_ref fNodeRef;
bool fEnabled;
};

class InputFilterLooper : public BLooper {
public:
InputFilterLooper(BSCInputFilter* filter) : BLooper("BSCInputFilter looper") {
InputFilterLooper(BSCInputFilter* filter)
:
BLooper("BSCInputFilter looper")
{
fFilter = filter;
};
virtual void MessageReceived(BMessage* message) {
}
virtual void MessageReceived(BMessage* message)
{
switch (message->what) {
case B_NODE_MONITOR:
Settings::Current().Load();
Expand All @@ -58,7 +61,6 @@ BSCInputFilter::BSCInputFilter()
fEnabled(true)
{
fLooper = new InputFilterLooper(this);
fMessenger = BMessenger(fLooper);

Settings::Initialize();
fEnabled = Settings::Current().EnableShortcut();
Expand Down Expand Up @@ -100,7 +102,7 @@ BSCInputFilter::~BSCInputFilter()
status_t
BSCInputFilter::InitCheck()
{
return B_NO_ERROR;
return BInputServerFilter::InitCheck();
}


Expand Down

0 comments on commit 580af39

Please sign in to comment.