Skip to content

Commit

Permalink
Fix (almost) clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Jan 12, 2024
1 parent fb8d9d6 commit 31e8f75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/GenioApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ GenioApp::GenioApp()

LSPServersManager::InitLSPServersConfig();

fGenioWindow = new GenioWindow(gCFG["ui_bounds"]);
fGenioWindow = new GenioWindow(BRect(gCFG["ui_bounds"]));
}


Expand Down
9 changes: 8 additions & 1 deletion src/helpers/console_io/WordTextView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@
#include <FindDirectory.h>
#include <Path.h>
#include <Window.h>
#include "ActionManager.h"


#include "TextUtils.h"

//// TODO: move these function in a common TextUtilities class..

const std::string kNumericChars("1234567890");
const std::string kDefaultAdditionalWordCharacters(":@-+./_~");

WordTextView::WordTextView(const char* name)
:
BTextView(name)
{
}


bool
WordTextView::_Classify(char c)
Expand Down
5 changes: 1 addition & 4 deletions src/helpers/console_io/WordTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class WordTextView : public BTextView {
public:
WordTextView(const char* name):BTextView(name), fPrevCopyValue(false){}
WordTextView(const char* name);

void MouseMoved (BPoint where, uint32 code, const BMessage *dragMessage);
void MouseDown (BPoint where);
Expand All @@ -35,9 +35,6 @@ class WordTextView : public BTextView {
BString fCurrentDirectory; //Not used but could be usefull..

char fBuffer[MAX_WORD_SIZE + 1];

bool fPrevCopyValue;

};


Expand Down

0 comments on commit 31e8f75

Please sign in to comment.