1
0
mirror of https://github.com/pocoproject/poco.git synced 2025-03-30 23:51:34 +02:00

remove unused var

This commit is contained in:
Günter Obiltschnig 2020-02-08 16:13:32 +01:00
parent ed2f6b813e
commit 58e4839f44

@ -2,14 +2,14 @@
// WebNotifier.cpp
//
// This sample demonstrates a combination of Data and Net libraries by
// creating a database, registering callbacks for insert/update events
// creating a database, registering callbacks for insert/update events
// and sending database modifications to the web client through web socket.
// Since callbacks are only registered for session, in order to see the
// effects, database updates should be done through the shell provided by
// this example.
//
// this example.
//
// This is only a demo. For production-grade a better web socket management
// facility as well as persisting notification functionality (e.g. via
// facility as well as persisting notification functionality (e.g. via
// triggers and external functions) should be used.
//
// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
@ -128,7 +128,7 @@ public:
std::cout << std::endl << "WebSocket connection established." << std::endl << PROMPT;
char buffer[1024];
int n, count = 0;
int n;
do
{
n = _pWS->receiveFrame(buffer, sizeof(buffer), _flags);
@ -184,7 +184,7 @@ public:
if (uri != "/favicon.ico")
std::cout << "Unknown URI: " << uri << std::endl;
return 0;
}
@ -250,7 +250,7 @@ public:
_notifier.insert -= delegate(this, &DBEventHandler::onInsert);
_notifier.update -= delegate(this, &DBEventHandler::onUpdate);
}
std::size_t execute(const std::string& sql)
/// Exectutes the SQL statement.
{