Fix typos in comments
Signed-off-by: Andras Timar <andras.timar@collabora.com> Change-Id: I813f652b516c79f350b46317e589b91e0ef39a1apull/5182/head
parent
cba04c9570
commit
cf6e22c22c
|
@ -763,9 +763,9 @@ check-local: $(MOCHA_TS_JS_FILES)
|
|||
|
||||
SSL_FLAG = `xmllint --xpath 'string(/config/ssl/enable)' $(abs_top_builddir)/coolwsd.xml`
|
||||
|
||||
# the delay (in miliseconds) between each emulated key stroke for each view
|
||||
# the delay (in milliseconds) between each emulated key stroke for each view
|
||||
typing_speed=100
|
||||
# The duration of the typing (in miliseconds)
|
||||
# The duration of the typing (in milliseconds)
|
||||
typing_duration=30000
|
||||
# By default 6 views are spawned in the document.
|
||||
single_view="false"
|
||||
|
|
|
@ -2063,7 +2063,7 @@ class CanvasSectionContainer {
|
|||
But when Leaflet is removed, animation will stop first and then onclick event will be propagated to sections.
|
||||
|
||||
stoppingEvents: ['click', 'mousemove' ..etc] // Events should match the real keywords.
|
||||
// Developer can set the duration for the animation, in miliseconds. There are also other ways to stop the animation.
|
||||
// Developer can set the duration for the animation, in milliseconds. There are also other ways to stop the animation.
|
||||
duration: 2000 | null // 2 seconds | null.
|
||||
*/
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ class ScrollSection {
|
|||
this.sectionProperties.currentAlpha = 1.0; // This variable will be updated while animating. When not animating, this will be equal to one of the above variables.
|
||||
|
||||
// Durations.
|
||||
this.sectionProperties.idleDuration = 2000; // In miliseconds. Scroll bar will be visible for this period of time after being used.
|
||||
this.sectionProperties.idleDuration = 2000; // In milliseconds. Scroll bar will be visible for this period of time after being used.
|
||||
this.sectionProperties.fadeOutStartingTime = 1800; // After this period, scroll bar starts to disappear. This duration is included in "idleDuration".
|
||||
this.sectionProperties.fadeOutDuration = this.sectionProperties.idleDuration - this.sectionProperties.fadeOutStartingTime;
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
_data = std::move(accessToken);
|
||||
}
|
||||
|
||||
/// Set the access_token parametr to the given uri.
|
||||
/// Set the access_token parameter to the given URI.
|
||||
void authorizeURI(Poco::URI& uri) const;
|
||||
|
||||
/// Set the Authorization: header in request.
|
||||
|
|
|
@ -181,7 +181,7 @@ protected:
|
|||
}
|
||||
|
||||
/// Search the queue for a previous removetextcontext message (which actually means "remove text
|
||||
/// content", the word "context" is becaue of some misunderstanding lost in history) and if
|
||||
/// content", the word "context" is because of some misunderstanding lost in history) and if
|
||||
/// found, remove it and combine its input with that in the current removetextcontext message.
|
||||
/// We check that there aren't any interesting messages inbetween that would make it wrong to
|
||||
/// merge the removetextcontext messages.
|
||||
|
|
|
@ -340,7 +340,7 @@ private:
|
|||
/// The form factor of the device where the client is running: desktop, tablet, mobile.
|
||||
std::string _deviceFormFactor;
|
||||
|
||||
/// The start value of Auto Spell Checking wheter it is enabled or disabled on start.
|
||||
/// The start value of Auto Spell Checking whether it is enabled or disabled on start.
|
||||
std::string _spellOnline;
|
||||
|
||||
/// Disable dialogs interactivity.
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
__VA_ARGS__ \
|
||||
}
|
||||
|
||||
/// Support seemless serialization of STATE_ENUM to ostream.
|
||||
/// Support seamless serialization of STATE_ENUM to ostream.
|
||||
template <typename T, typename std::enable_if<
|
||||
std::is_same<decltype(name(T())), const char*>::value>::type* = nullptr>
|
||||
inline std::ostream& operator<<(std::ostream& os, const T state)
|
||||
|
|
|
@ -141,7 +141,7 @@ public:
|
|||
/** Tokenize based on any of the characters in 'delimiters'.
|
||||
|
||||
Ie. when there is '\n\r' in there, any of them means a delimiter.
|
||||
In addition, trim the values so there are no leadiding or trailing spaces.
|
||||
In addition, trim the values so there are no leading or trailing spaces.
|
||||
*/
|
||||
static StringVector tokenizeAnyOf(const std::string& s, const char* delimiters,
|
||||
const std::size_t delimitersLength);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
// The base class for objects generating Trace Events when enabled.
|
||||
//
|
||||
// It depends on the embedding processs what is done to the Trace Events generated. In the WSD
|
||||
// It depends on the embedding process what is done to the Trace Events generated. In the WSD
|
||||
// process they are written to the Trace Event log file as generated (as buffered by the C++
|
||||
// library). In the Kit process they are buffered and then sent to the WSD process for writing to
|
||||
// the same log file. In the TraceEvent test program they are written out to stdout.
|
||||
|
|
|
@ -1294,7 +1294,7 @@ int main(int argc, char**argv)
|
|||
#endif
|
||||
|
||||
/// Convert a string to 32-bit signed int.
|
||||
/// Returns the parsed value and a boolean indiciating success or failure.
|
||||
/// Returns the parsed value and a boolean indicating success or failure.
|
||||
inline std::pair<std::int32_t, bool> i32FromString(const std::string& input)
|
||||
{
|
||||
const char* str = input.data();
|
||||
|
@ -1314,7 +1314,7 @@ int main(int argc, char**argv)
|
|||
}
|
||||
|
||||
/// Convert a string to 64-bit unsigned int.
|
||||
/// Returns the parsed value and a boolean indiciating success or failure.
|
||||
/// Returns the parsed value and a boolean indicating success or failure.
|
||||
inline std::pair<std::uint64_t, bool> u64FromString(const std::string& input)
|
||||
{
|
||||
const char* str = input.data();
|
||||
|
@ -1324,7 +1324,7 @@ int main(int argc, char**argv)
|
|||
return std::make_pair(value, endptr > str && errno != ERANGE);
|
||||
}
|
||||
|
||||
/// Convert a string to 64-bit usigned int. On failure, returns the default
|
||||
/// Convert a string to 64-bit unsigned int. On failure, returns the default
|
||||
/// value, and sets the bool to false (to signify that parsing had failed).
|
||||
inline std::pair<std::uint64_t, bool> u64FromString(const std::string& input,
|
||||
const std::uint64_t def)
|
||||
|
@ -1362,7 +1362,7 @@ int main(int argc, char**argv)
|
|||
return iequal(lhs.c_str(), lhs.size(), rhs.c_str(), rhs.size());
|
||||
}
|
||||
|
||||
/// Get system_clock now in miliseconds.
|
||||
/// Get system_clock now in milliseconds.
|
||||
inline int64_t getNowInMS()
|
||||
{
|
||||
return std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()).time_since_epoch().count();
|
||||
|
|
|
@ -112,7 +112,7 @@ function loadTestDocNextcloud(fileName, subFolder, subsequentLoad) {
|
|||
cy.log('Param - subFolder: ' + subFolder);
|
||||
cy.log('Param - subsequentLoad: ' + subsequentLoad);
|
||||
|
||||
// Ignore exceptions comming from nextlcoud.
|
||||
// Ignore exceptions coming from nextcloud.
|
||||
Cypress.on('uncaught:exception', function() {
|
||||
return false;
|
||||
});
|
||||
|
|
|
@ -2281,7 +2281,7 @@ public:
|
|||
protected:
|
||||
void handleMessage(const std::vector<char>& data) override
|
||||
{
|
||||
// To get A LOT of Trace Events, to exercide their handling, uncomment this:
|
||||
// To get A LOT of Trace Events, to exercise their handling, uncomment this:
|
||||
// ProfileZone profileZone("KitWebSocketHandler::handleMessage");
|
||||
|
||||
std::string message(data.data(), data.size());
|
||||
|
|
|
@ -39,7 +39,7 @@ static_assert(false, "config.h must be included in the .cpp being compiled");
|
|||
//
|
||||
// There is no attempt to support all possible
|
||||
// features of the RFC. However, we do attempt
|
||||
// to be maximally compatible and accomodating
|
||||
// to be maximally compatible and accommodating
|
||||
// to server and client implementations in the
|
||||
// wild. This code is designed to work primarily
|
||||
// on the client side, with provision for being
|
||||
|
@ -125,7 +125,7 @@ static_assert(false, "config.h must be included in the .cpp being compiled");
|
|||
// which contains the status code, reason,
|
||||
// and a convenient status category.
|
||||
//
|
||||
// Finally, if a syncronous request is needed,
|
||||
// Finally, if a synchronous request is needed,
|
||||
// http::Session provides syncRequest that
|
||||
// blocks until the request completes. However,
|
||||
// the onFinished callback is still triggered
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
// This file hosts network related common functionality
|
||||
// and helper/utility functions and classes.
|
||||
// HTTP-specific helpers are in HttpHeler.hpp.
|
||||
// HTTP-specific helpers are in HttpHelper.hpp.
|
||||
|
||||
class StreamSocket;
|
||||
class ProtocolHandlerInterface;
|
||||
|
@ -74,4 +74,4 @@ inline std::string parseUrl(const std::string& uri)
|
|||
return std::string();
|
||||
}
|
||||
|
||||
} // namespace net
|
||||
} // namespace net
|
||||
|
|
|
@ -1270,7 +1270,7 @@ public:
|
|||
void enableProcessInput(bool enable = true){ _inputProcessingEnabled = enable; }
|
||||
|
||||
/// The available number of bytes in the socket
|
||||
/// buffer for an optimal transmition.
|
||||
/// buffer for an optimal transmission.
|
||||
int getSendBufferCapacity() const
|
||||
{
|
||||
#if !MOBILEAPP
|
||||
|
|
|
@ -360,7 +360,7 @@ private:
|
|||
else
|
||||
LOG_TRC("SSL error: UNKNOWN (" << sslError << ") " << getBioError(rc));
|
||||
|
||||
// The error is comming from BIO. Find out what happened.
|
||||
// The error is coming from BIO. Find out what happened.
|
||||
const long bioError = ERR_get_error();
|
||||
|
||||
std::ostringstream oss;
|
||||
|
@ -400,7 +400,7 @@ private:
|
|||
|
||||
std::string getBioError(const int rc) const
|
||||
{
|
||||
// The error is comming from BIO. Find out what happened.
|
||||
// The error is coming from BIO. Find out what happened.
|
||||
const long bioError = ERR_get_error();
|
||||
|
||||
std::ostringstream oss;
|
||||
|
|
|
@ -114,7 +114,7 @@ private:
|
|||
else if (Util::startsWith(request.getUrl(), "/inject"))
|
||||
{
|
||||
// /inject/<hex data> sends back the data (in binary form)
|
||||
// verbatum. It doesn't add headers or anything at all.
|
||||
// verbatim. It doesn't add headers or anything at all.
|
||||
const std::string hex = request.getUrl().substr(sizeof("/inject"));
|
||||
const std::string bytes = Util::hexStringToBytes(
|
||||
reinterpret_cast<const uint8_t*>(hex.data()), hex.size());
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
/// Test Async uploading with simulated failing.
|
||||
/// We modify the document, save, and attempt to upload,
|
||||
/// which fails. We then modify the document again
|
||||
/// and save. We expect another upload attemp,
|
||||
/// and save. We expect another upload attempt,
|
||||
/// which will succeed.
|
||||
/// Modify, Save, Upload fails, Modify, Save -> Upload.
|
||||
class UnitWOPIAsyncUpload_Modify : public WopiTestServer
|
||||
|
|
|
@ -186,7 +186,7 @@ protected:
|
|||
{
|
||||
}
|
||||
|
||||
/// Assert the PutFile request is valid and optinally return a response.
|
||||
/// Assert the PutFile request is valid and optionally return a response.
|
||||
virtual std::unique_ptr<http::Response>
|
||||
assertPutFileRequest(const Poco::Net::HTTPRequest& /*request*/)
|
||||
{
|
||||
|
|
|
@ -375,7 +375,7 @@ private:
|
|||
/// Store last sent payload of form field button, so we can filter out redundant messages.
|
||||
std::string _lastSentFormFielButtonMessage;
|
||||
|
||||
/// Epoch of the client's performance.now() function, as microseconds sinze Unix epoch
|
||||
/// Epoch of the client's performance.now() function, as microseconds since Unix epoch
|
||||
uint64_t _performanceCounterEpoch;
|
||||
};
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class ChildProcess : public WSProcess
|
|||
{
|
||||
public:
|
||||
/// @param pid is the process ID of the child.
|
||||
/// @param socket is the underlying Sockeet to the child.
|
||||
/// @param socket is the underlying Socket to the child.
|
||||
ChildProcess(const pid_t pid,
|
||||
const std::string& jailId,
|
||||
const std::shared_ptr<StreamSocket>& socket,
|
||||
|
@ -154,7 +154,7 @@ class ClientSession;
|
|||
/// activity). Once we get the save result from Core
|
||||
/// (and ideally with success), we upload the document
|
||||
/// immediately. Previously, this was a synchronous
|
||||
/// process, which is now being reworked into an asynch.
|
||||
/// process, which is now being reworked into an async.
|
||||
///
|
||||
/// The user can invoke both Save and Upload operations
|
||||
/// however, and in more than one way.
|
||||
|
@ -746,7 +746,7 @@ private:
|
|||
/// Checks whether or not we can issue a new request now.
|
||||
/// Returns true iff there is no active request and sufficient
|
||||
/// time has elapsed since the last request, including that
|
||||
/// more time than the last request's duration has passe.
|
||||
/// more time than the last request's duration has passed.
|
||||
bool canRequestNow() const
|
||||
{
|
||||
const auto now = RequestManager::now();
|
||||
|
@ -796,7 +796,7 @@ private:
|
|||
std::chrono::milliseconds _lastRequestDuration;
|
||||
|
||||
/// Counts the number of previous requests that failed.
|
||||
/// Note that this is interpretted by the request in question.
|
||||
/// Note that this is interpreted by the request in question.
|
||||
/// For example, Core's Save operation turns 'false' for success
|
||||
/// when the file is unmodified, but that is still a successful result.
|
||||
std::size_t _lastRequestFailureCount;
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace Quarantine
|
|||
FileUtil::removeFile(COOLWSD::QuarantinePath, true);
|
||||
}
|
||||
|
||||
// returns quarentine directory size in bytes
|
||||
// returns quarantine directory size in bytes
|
||||
// files with hardlink count of more than 1 is not counted
|
||||
// because they are originally stored in jails
|
||||
std::size_t quarantineSize()
|
||||
|
|
|
@ -176,7 +176,7 @@ void RequestDetails::processURI()
|
|||
if (_pathSegs.equals(0, "cool"))
|
||||
{
|
||||
//FIXME: For historic reasons the DocumentURI includes the WOPISrc.
|
||||
// This is problematic because decoding a URI that embedds not one, but
|
||||
// This is problematic because decoding a URI that embeds not one, but
|
||||
// *two* encoded URIs within it is bound to produce an invalid URI.
|
||||
// Potentially three '?' might exist in the result (after decoding).
|
||||
std::size_t end = uriRes.rfind("/ws?");
|
||||
|
|
Loading…
Reference in New Issue