Skip to content

Commit 8df330d

Browse files
committed
change all_off() to off_all()
1 parent f1ae7a0 commit 8df330d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/QT/SioChatDemo/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ MainWindow::MainWindow(QWidget *parent) :
2828

2929
MainWindow::~MainWindow()
3030
{
31-
_io->socket()->all_off();
31+
_io->socket()->off_all();
3232
_io->socket()->clear_listeners();
3333
delete ui;
3434
}

examples/iOS/SioChatDemo/SioChatDemo/CRViewController.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ -(void)keyboardWillHide {
202202

203203
-(void)viewDidDisappear:(BOOL)animated
204204
{
205-
_io->socket()->all_off();
205+
_io->socket()->off_all();
206206
_io->socket()->set_connect_listener(nullptr);
207207
_io->socket()->set_close_listener(nullptr);
208208
_io->close();

src/sio_socket.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ namespace sio {
111111
}
112112
}
113113

114-
void all_off()
114+
void off_all()
115115
{
116116
m_event_binding.clear();
117117
}
@@ -500,9 +500,9 @@ void set_##__FIELD__(__TYPE__ const& l) \
500500
m_impl->off(event_name);
501501
}
502502

503-
void socket::all_off()
503+
void socket::off_all()
504504
{
505-
m_impl->all_off();
505+
m_impl->off_all();
506506
}
507507

508508
void socket::close()

src/sio_socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace sio
6060

6161
void off(std::string const& event_name);
6262

63-
void all_off();
63+
void off_all();
6464

6565
void close();
6666

0 commit comments

Comments
 (0)