// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/net_errors.h" namespace net { const char kErrorDomain[] = "net"; std::string ErrorToString(int error) { return "net::" + ErrorToShortString(error); } std::string ErrorToShortString(int error) { if (error == 0) return "OK"; const char* error_string; switch (error) { #define NET_ERROR(label, value) \ case ERR_ ## label: \ error_string = # label; \ break; #include "net/base/net_error_list.h" #undef NET_ERROR default: NOTREACHED(); error_string = ""; } return std::string("ERR_") + error_string; } bool IsCertificateError(int error) { // Certificate errors are negative integers from net::ERR_CERT_BEGIN // (inclusive) to net::ERR_CERT_END (exclusive) in *decreasing* order. // ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN is currently an exception to this // rule. return (error <= ERR_CERT_BEGIN && error > ERR_CERT_END) || (error == ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN); } bool IsClientCertificateError(int error) { switch (error) { case ERR_BAD_SSL_CLIENT_AUTH_CERT: case ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED: case ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY: case ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED: return true; default: return false; } } Error FileErrorToNetError(base::File::Error file_error) { switch (file_error) { case base::File::FILE_OK: return OK; case base::File::FILE_ERROR_ACCESS_DENIED: return ERR_ACCESS_DENIED; case base::File::FILE_ERROR_INVALID_URL: return ERR_INVALID_URL; case base::File::FILE_ERROR_NOT_FOUND: return ERR_FILE_NOT_FOUND; default: return ERR_FAILED; } } } // namespace net tion value='6.4.3'>6.4.3 Qt Base (Core, Gui, Widgets, Network, ...)
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2012-12-07 11:43:50 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-11 11:02:13 +0100
commit90c3340356e641958528007e838eab981f090fdf (patch)
tree4f522d6e334b1f1dc607bb83fc0bf222f66b3b40 /src
parentde8b1ff8843d16aab45de104e932134fa3fa3ab1 (diff)
QDoc: Fix generated anchors for c++ class signals
Add a missing 's' for plural form for signals. This fixes the linking to Signals topic in class references. Task-number: QTBUG-28450 Change-Id: Ic666e608b4b5b40b1f886ea581e54227e1a94678 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/qdoc/cppcodemarker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/qdoc/cppcodemarker.cpp b/src/tools/qdoc/cppcodemarker.cpp
index ccff1c18ca..74036f4011 100644
--- a/src/tools/qdoc/cppcodemarker.cpp
+++ b/src/tools/qdoc/cppcodemarker.cpp
@@ -484,7 +484,7 @@ QList<Section> CppCodeMarker::sections(const InnerNode *inner,
QString(),
"public function",
"public functions");
- FastSection publicSignals(classNode, "Signals", QString(), "signal", "signal");
+ FastSection publicSignals(classNode, "Signals", QString(), "signal", "signals");
FastSection publicSlots(classNode, "Public Slots", QString(), "public slot", "public slots");
FastSection publicTypes(classNode, "Public Types", QString(), "public type", "public types");
FastSection publicVariables(classNode,