#12841: [Patch] RecorderWindow.cpp: fix comparison between pointer and integer
----------------------------------------+------------------------------
Reporter: mt | Owner: Barrett
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/SoundRecorder | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
----------------------------------------+------------------------------
Modify if condition at line 1342 [1], since FindString(const char*)
returns 'const char*'[2].
[1] http://cgit.haiku-
os.org/haiku/tree/src/apps/soundrecorder/RecorderWindow.cpp#n1342
[2] http://cgit.haiku-os.org/haiku/tree/headers/os/app/Message.h#n406
{{{
/home/haiku/haiku/haiku/src/apps/soundrecorder/RecorderWindow.cpp:1342:40:
error: comparison between pointer and integer ('const char *' and 'int')
if (msg->FindString("be:filetypes") == B_OK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12841>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.