DeskCalc: fix build.

Apparently, this code was submitted to Gerrit without checking if it
built.
This commit is contained in:
Adrien Destugues
2020-01-25 19:54:31 +01:00
parent fadca4b173
commit 1bd3bfd038
2 changed files with 2 additions and 5 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
#include <Alert.h>
#include <Application.h>
#include <AppFileInfo.h>
#include <Beep.h>
#include <Bitmap.h>
#include <Catalog.h>
#include <ControlLook.h>
@@ -807,7 +808,7 @@ CalcView::Copy()
&& (clipper = be_clipboard->Data()) == B_OK) {
BString expression = fExpressionTextView->Text();
if (clipper->AddData("text/plain", B_MIME_TYPE,
expression.String(), expression.Length() == B_OK) {
expression.String(), expression.Length()) == B_OK) {
clipper->what = B_MIME_DATA;
be_clipboard->Commit();
}
-4
View File
@@ -87,10 +87,6 @@ CalcWindow::MessageReceived(BMessage* message)
fCalcView->ToggleAutoNumlock();
break;
case MSG_OPTIONS_AUDIO_FEEDBACK:
fCalcView->ToggleAudioFeedback();
break;
case MSG_OPTIONS_ANGLE_MODE_RADIAN:
fCalcView->SetDegreeMode(false);
return;