Skip to content

Commit 0e6e166

Browse files
authored
Remove trailing whitespace (#3668)
1 parent 0af9524 commit 0e6e166

File tree

1,330 files changed

+23509
-23510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,330 files changed

+23509
-23510
lines changed

ActiveRecord/Compiler/Compiler.progen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ vc.project.compiler.defines =
1212
vc.project.compiler.defines.shared =
1313
vc.project.compiler.defines.debug_shared = ${vc.project.compiler.defines.shared}
1414
vc.project.compiler.defines.release_shared = ${vc.project.compiler.defines.shared}
15-
vc.project.linker.dependencies =
15+
vc.project.linker.dependencies =
1616
vc.solution.create = true

ApacheConnector/doc/ApacheConnectorUserGuide.page

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ file (usually <[httpd.conf]>):
1616

1717
LoadModule poco_module modules/mod_pocod.so
1818
----
19-
19+
2020
!!!Configuring ApacheConnector
2121
ApacheConnector must be able to find shared libraries containing request handler, as well
2222
as optional configuration files. ApacheConnector provides an Poco::Util::Application class
@@ -30,15 +30,15 @@ is used in the Apache configuration file:
3030

3131
AddPocoRequestHandler <FactoryClass> <SharedLibrary> <Path>...
3232
----
33-
33+
3434
The first argument specifies the name of the request handler factory class. The second argument
3535
contains the path of the shared library containing the request handler.
3636
The third (and optionally following) argument(s) specify the URI paths handled by the
3737
request handler. For example:
3838

3939
AddPocoRequestHandler TimeRequestHandlerFactory p:/Poco/ApacheConnector/samples/TimeServer/bin/TimeServerd.dll /time
4040
----
41-
41+
4242
loads the TimeRequestHandlerFactory from TimeServerd.dll. Whenever a request for a URI starting with "/time"
4343
is sent by a client, this request will be handled by the TimeRequestHandler.
4444

@@ -76,33 +76,33 @@ Following is a sample for a request handler implementation. The complete sample
7676
#include "Poco/DateTimeFormatter.h"
7777
#include "Poco/DateTimeFormat.h"
7878
#include "Poco/ClassLibrary.h"
79-
80-
79+
80+
8181
using Poco::Net::HTTPRequestHandler;
8282
using Poco::Net::HTTPRequestHandlerFactory;
8383
using Poco::Net::HTTPServerRequest;
8484
using Poco::Net::HTTPServerResponse;
8585
using Poco::Timestamp;
8686
using Poco::DateTimeFormatter;
8787
using Poco::DateTimeFormat;
88-
89-
88+
89+
9090
class TimeRequestHandler: public HTTPRequestHandler
9191
/// Return a HTML document with the current date and time.
9292
{
9393
public:
94-
TimeRequestHandler()
94+
TimeRequestHandler()
9595
{
9696
}
97-
97+
9898
void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
9999
{
100100
Timestamp now;
101101
std::string dt(DateTimeFormatter::format(now, DateTimeFormat::SORTABLE_FORMAT));
102-
102+
103103
response.setChunkedTransferEncoding(true);
104104
response.setContentType("text/html");
105-
105+
106106
std::ostream& ostr = response.send();
107107
ostr << "<html><head><title>TimeServer powered by POCO ApacheConnector</title>";
108108
ostr << "<meta http-equiv=\"refresh\" content=\"1\"></head>";
@@ -111,22 +111,22 @@ Following is a sample for a request handler implementation. The complete sample
111111
ostr << "</p></body></html>";
112112
}
113113
};
114-
115-
114+
115+
116116
class TimeRequestHandlerFactory: public HTTPRequestHandlerFactory
117117
{
118118
public:
119119
TimeRequestHandlerFactory()
120120
{
121121
}
122-
122+
123123
HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request)
124124
{
125125
return new TimeRequestHandler;
126126
}
127127
};
128-
129-
128+
129+
130130
POCO_BEGIN_MANIFEST(HTTPRequestHandlerFactory)
131131
POCO_EXPORT_CLASS(TimeRequestHandlerFactory)
132132
POCO_END_MANIFEST

ApacheConnector/include/ApacheConnector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ApacheRequestRec
2525
public:
2626
ApacheRequestRec(request_rec* _pRec);
2727
/// Creates the ApacheRequestRec;
28-
28+
2929
bool haveRequestBody();
3030
/// Returns true if the request contains a body.
3131

ApacheConnector/include/ApacheRequestHandlerFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ApacheRequestHandlerFactory: public Poco::Net::HTTPRequestHandlerFactory
4545

4646
private:
4747
typedef std::map<std::string, Poco::Net::HTTPRequestHandlerFactory*> RequestHandlerFactories;
48-
48+
4949
RequestHandlerFactories _requestHandlers;
5050
Poco::ClassLoader<Poco::Net::HTTPRequestHandlerFactory> _loader;
5151
Poco::FastMutex _mutex;

ApacheConnector/include/ApacheServerRequest.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class ApacheServerRequest: public Poco::Net::HTTPServerRequest
2525
{
2626
public:
2727
ApacheServerRequest(
28-
ApacheRequestRec* pApacheRequest,
29-
const char* serverName,
30-
int serverPort,
31-
const char* clientName,
28+
ApacheRequestRec* pApacheRequest,
29+
const char* serverName,
30+
int serverPort,
31+
const char* clientName,
3232
int clientPort);
3333
/// Creates a new ApacheServerRequest.
3434

@@ -73,7 +73,7 @@ class ApacheServerRequest: public Poco::Net::HTTPServerRequest
7373
ApacheInputStream* _pStream;
7474
Poco::Net::SocketAddress _serverAddress;
7575
Poco::Net::SocketAddress _clientAddress;
76-
76+
7777
friend class ApacheServerResponse;
7878
};
7979

@@ -84,7 +84,7 @@ class ApacheServerRequest: public Poco::Net::HTTPServerRequest
8484
inline std::istream& ApacheServerRequest::stream()
8585
{
8686
poco_check_ptr (_pStream);
87-
87+
8888
return *_pStream;
8989
}
9090

ApacheConnector/include/ApacheServerResponse.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ApacheServerResponse: public Poco::Net::HTTPServerResponse
4242
void sendContinue();
4343
/// Sends a 100 Continue response to the
4444
/// client.
45-
45+
4646
void sendErrorResponse(int status);
4747
/// Sends an error response with the given
4848
/// status back to the client.
@@ -55,20 +55,20 @@ class ApacheServerResponse: public Poco::Net::HTTPServerResponse
5555
/// The returned stream is valid until the response
5656
/// object is destroyed.
5757
///
58-
/// Must not be called after sendFile(), sendBuffer()
58+
/// Must not be called after sendFile(), sendBuffer()
5959
/// or redirect() has been called.
60-
60+
6161
void sendFile(const std::string& path, const std::string& mediaType);
6262
/// Sends the response header to the client, followed
6363
/// by the content of the given file.
6464
///
65-
/// Must not be called after send(), sendBuffer()
65+
/// Must not be called after send(), sendBuffer()
6666
/// or redirect() has been called.
6767
///
6868
/// Throws a FileNotFoundException if the file
6969
/// cannot be found, or an OpenFileException if
7070
/// the file cannot be opened.
71-
71+
7272
void sendBuffer(const void* pBuffer, std::size_t length);
7373
/// Sends the response header to the client, followed
7474
/// by the contents of the given buffer.
@@ -77,12 +77,12 @@ class ApacheServerResponse: public Poco::Net::HTTPServerResponse
7777
/// to length and chunked transfer encoding is disabled.
7878
///
7979
/// If both the HTTP message header and body (from the
80-
/// given buffer) fit into one single network packet, the
80+
/// given buffer) fit into one single network packet, the
8181
/// complete response can be sent in one network packet.
8282
///
83-
/// Must not be called after send(), sendFile()
83+
/// Must not be called after send(), sendFile()
8484
/// or redirect() has been called.
85-
85+
8686
void redirect(const std::string& uri, Poco::Net::HTTPResponse::HTTPStatus status);
8787
/// Sets the status code, which must be one of
8888
/// HTTP_MOVED_PERMANENTLY (301), HTTP_FOUND (302),
@@ -92,12 +92,12 @@ class ApacheServerResponse: public Poco::Net::HTTPServerResponse
9292
/// the HTTP specification, must be absolute.
9393
///
9494
/// Must not be called after send() has been called.
95-
95+
9696
void requireAuthentication(const std::string& realm);
9797
/// Sets the status code to 401 (Unauthorized)
9898
/// and sets the "WWW-Authenticate" header field
9999
/// according to the given realm.
100-
100+
101101
bool sent() const;
102102
/// Returns true if the response (header) has been sent.
103103

ApacheConnector/include/ApacheStream.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ApacheStreamBuf: public Poco::BufferedStreamBuf
3333
int writeToDevice(const char* buffer, std::streamsize length);
3434

3535
private:
36-
enum
36+
enum
3737
{
3838
STREAM_BUFFER_SIZE = 1024
3939
};
@@ -53,15 +53,15 @@ class ApacheIOS: public virtual std::ios
5353
public:
5454
ApacheIOS(ApacheRequestRec* pApacheRequest, bool haveData = false);
5555
/// Creates the ApacheIOS with the given socket.
56-
56+
5757
~ApacheIOS();
5858
/// Destroys the ApacheIOS.
5959
///
6060
/// Flushes the buffer, but does not close the socket.
61-
61+
6262
ApacheStreamBuf* rdbuf();
6363
/// Returns a pointer to the internal ApacheStreamBuf.
64-
64+
6565
void close();
6666
/// Flushes the stream.
6767

ApacheConnector/samples/FormServer/src/FormServer.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MyPartHandler: public Poco::Net::PartHandler
4040
_length(0)
4141
{
4242
}
43-
43+
4444
void handlePart(const MessageHeader& header, std::istream& stream)
4545
{
4646
_type = header.get("Content-Type", "(unspecified)");
@@ -52,18 +52,18 @@ class MyPartHandler: public Poco::Net::PartHandler
5252
_name = params.get("name", "(unnamed)");
5353
_fileName = params.get("filename", "(unnamed)");
5454
}
55-
55+
5656
CountingInputStream istr(stream);
5757
NullOutputStream ostr;
5858
StreamCopier::copyStream(istr, ostr);
5959
_length = istr.chars();
6060
}
61-
61+
6262
int length() const
6363
{
6464
return _length;
6565
}
66-
66+
6767
const std::string& name() const
6868
{
6969
return _name;
@@ -73,12 +73,12 @@ class MyPartHandler: public Poco::Net::PartHandler
7373
{
7474
return _fileName;
7575
}
76-
76+
7777
const std::string& contentType() const
7878
{
7979
return _type;
8080
}
81-
81+
8282
private:
8383
int _length;
8484
std::string _type;
@@ -91,10 +91,10 @@ class FormRequestHandler: public HTTPRequestHandler
9191
/// Return a HTML document with the current date and time.
9292
{
9393
public:
94-
FormRequestHandler()
94+
FormRequestHandler()
9595
{
9696
}
97-
97+
9898
void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
9999
{
100100
MyPartHandler partHandler;
@@ -104,7 +104,7 @@ class FormRequestHandler: public HTTPRequestHandler
104104
response.setContentType("text/html");
105105

106106
std::ostream& ostr = response.send();
107-
107+
108108
ostr <<
109109
"<html>\n"
110110
"<head>\n"
@@ -127,7 +127,7 @@ class FormRequestHandler: public HTTPRequestHandler
127127
"<input type=\"file\" name=\"file\" size=\"31\"> \n"
128128
"<input type=\"submit\" value=\"Upload\">\n"
129129
"</form>\n";
130-
130+
131131
ostr << "<h2>Request</h2><p>\n";
132132
ostr << "Method: " << request.getMethod() << "<br>\n";
133133
ostr << "URI: " << request.getURI() << "<br>\n";
@@ -150,7 +150,7 @@ class FormRequestHandler: public HTTPRequestHandler
150150
}
151151
ostr << "</p>";
152152
}
153-
153+
154154
if (!partHandler.name().empty())
155155
{
156156
ostr << "<h2>Upload</h2><p>\n";

ApacheConnector/samples/TimeServer/src/TimeServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class TimeRequestHandler: public HTTPRequestHandler
3232
/// Return a HTML document with the current date and time.
3333
{
3434
public:
35-
TimeRequestHandler()
35+
TimeRequestHandler()
3636
{
3737
}
38-
38+
3939
void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
4040
{
4141
Timestamp now;

ApacheConnector/src/ApacheApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ApacheApplication::~ApacheApplication()
3535
void ApacheApplication::setup()
3636
{
3737
FastMutex::ScopedLock lock(_mutex);
38-
38+
3939
if (!_ready)
4040
{
4141
std::vector<std::string> cmdLine;

0 commit comments

Comments
 (0)