Skip to content

Commit af35e24

Browse files
committed
Make NotificationFrame::getSubject const
1 parent 5f1723a commit af35e24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/websocket.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ NotificationFrame::~NotificationFrame() {
104104
}
105105

106106
string
107-
NotificationFrame::getSubject() {
107+
NotificationFrame::getSubject() const {
108108
string type("Unknown notification type");
109109
string dataStr(mData, mDataLength);
110110
int posStart = dataStr.find("\"type\":\"");

src/websocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class NotificationFrame : public WebSocketFrame
4949
NotificationFrame(int flags);
5050
virtual ~NotificationFrame();
5151

52-
virtual string getSubject();
52+
virtual string getSubject() const;
5353
virtual void setSubject(string subject);
5454
};
5555

0 commit comments

Comments
 (0)