Opened 8 years ago

Closed 8 years ago

#12841 closed bug (fixed)

[Patch] RecorderWindow.cpp: fix comparison between pointer and integer

Reported by: mt Owned by: Barrett
Priority: normal Milestone: Unscheduled
Component: Applications/SoundRecorder Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

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
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~

Attachments (1)

0031-RecorderWindow.cpp-fix-comparison-between-pointer-an.patch (953 bytes ) - added by mt 8 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by mt, 8 years ago

patch: 01

comment:2 by Barrett, 8 years ago

Applied in hrev50385.

comment:3 by Barrett, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.