Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
8449e868
Commit
8449e868
authored
May 29, 2014
by
David Renshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos and remove unused declaration
parent
25509cf4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
ez-rpc.h
c++/src/capnp/ez-rpc.h
+2
-2
rpc.c++
c++/src/capnp/rpc.c++
+0
-2
string-tree.h
c++/src/kj/string-tree.h
+4
-4
No files found.
c++/src/capnp/ez-rpc.h
View file @
8449e868
...
...
@@ -140,7 +140,7 @@ class EzRpcServer {
// The server counterpart to `EzRpcClient`. See `EzRpcClient` for an example.
public
:
explicit
EzRpcServer
(
kj
::
StringPtr
bindAddress
,
uint
de
af
ultPort
=
0
);
explicit
EzRpcServer
(
kj
::
StringPtr
bindAddress
,
uint
de
fa
ultPort
=
0
);
// Construct a new `EzRpcServer` that binds to the given address. An address of "*" means to
// bind to all local addresses.
//
...
...
@@ -169,7 +169,7 @@ public:
// Export a capability publicly under the given name, so that clients can import it.
//
// Keep in mind that you can implicitly convert `kj::Own<MyType::Server>&&` to
// `Capability::Client`, so it's typical
l
to pass something like
// `Capability::Client`, so it's typical to pass something like
// `kj::heap<MyImplementation>(<constructor params>)` as the second parameter.
kj
::
Promise
<
uint
>
getPort
();
...
...
c++/src/capnp/rpc.c++
View file @
8449e868
...
...
@@ -265,8 +265,6 @@ private:
// =======================================================================================
class
RpcConnectionState
final
:
public
kj
::
TaskSet
::
ErrorHandler
,
public
kj
::
Refcounted
{
class
PromisedAnswerClient
;
public
:
RpcConnectionState
(
kj
::
Maybe
<
SturdyRefRestorerBase
&>
restorer
,
kj
::
Own
<
VatNetworkBase
::
Connection
>&&
connectionParam
,
...
...
c++/src/kj/string-tree.h
View file @
8449e868
...
...
@@ -126,11 +126,11 @@ char* fill(char* __restrict__ target, const StringTree& first, Rest&&... rest) {
template
<
typename
T
>
constexpr
bool
isStringTree
()
{
return
false
;
}
template
<>
constexpr
bool
isStringTree
<
StringTree
>
()
{
return
true
;
}
inline
StringTree
&&
toStringTreeOrCharSequ
ne
ce
(
StringTree
&&
tree
)
{
return
kj
::
mv
(
tree
);
}
inline
StringTree
toStringTreeOrCharSequ
ne
ce
(
String
&&
str
)
{
return
StringTree
(
kj
::
mv
(
str
));
}
inline
StringTree
&&
toStringTreeOrCharSequ
en
ce
(
StringTree
&&
tree
)
{
return
kj
::
mv
(
tree
);
}
inline
StringTree
toStringTreeOrCharSequ
en
ce
(
String
&&
str
)
{
return
StringTree
(
kj
::
mv
(
str
));
}
template
<
typename
T
>
inline
auto
toStringTreeOrCharSequ
ne
ce
(
T
&&
value
)
inline
auto
toStringTreeOrCharSequ
en
ce
(
T
&&
value
)
->
decltype
(
toCharSequence
(
kj
::
fwd
<
T
>
(
value
)))
{
static_assert
(
!
isStringTree
<
Decay
<
T
>>
(),
"When passing a StringTree into kj::strTree(), either pass it by rvalue "
...
...
@@ -202,7 +202,7 @@ StringTree StringTree::concat(Params&&... params) {
template
<
typename
...
Params
>
StringTree
strTree
(
Params
&&
...
params
)
{
return
StringTree
::
concat
(
_
::
toStringTreeOrCharSequ
ne
ce
(
kj
::
fwd
<
Params
>
(
params
))...);
return
StringTree
::
concat
(
_
::
toStringTreeOrCharSequ
en
ce
(
kj
::
fwd
<
Params
>
(
params
))...);
}
}
// namespace kj
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment