From 1bd3bfd038c8d203beca63e5e66a27f547ed1cd1 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 25 Jan 2020 19:54:31 +0100 Subject: [PATCH] DeskCalc: fix build. Apparently, this code was submitted to Gerrit without checking if it built. --- src/apps/deskcalc/CalcView.cpp | 3 ++- src/apps/deskcalc/CalcWindow.cpp | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/apps/deskcalc/CalcView.cpp b/src/apps/deskcalc/CalcView.cpp index fc54589461..a2d3224018 100644 --- a/src/apps/deskcalc/CalcView.cpp +++ b/src/apps/deskcalc/CalcView.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -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(); } diff --git a/src/apps/deskcalc/CalcWindow.cpp b/src/apps/deskcalc/CalcWindow.cpp index d8ad35ce08..699ccd8db5 100644 --- a/src/apps/deskcalc/CalcWindow.cpp +++ b/src/apps/deskcalc/CalcWindow.cpp @@ -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;