diff options
Diffstat (limited to 'cpp/demo/book/simple_filesystem/Server.cpp')
-rwxr-xr-x | cpp/demo/book/simple_filesystem/Server.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/book/simple_filesystem/Server.cpp b/cpp/demo/book/simple_filesystem/Server.cpp index 606d1b28537..f2e4cb81184 100755 --- a/cpp/demo/book/simple_filesystem/Server.cpp +++ b/cpp/demo/book/simple_filesystem/Server.cpp @@ -29,22 +29,22 @@ public: // Create the root directory (with name "/" and no parent) // - DirectoryIPtr root = new DirectoryI("/", 0); + DirectoryIPtr root = new DirectoryI(communicator(), "/", 0); // Create a file called "README" in the root directory // - FilePtr file = new FileI("README", root); + FilePtr file = new FileI(communicator(), "README", root); Lines text; text.push_back("This file system contains a collection of poetry."); file->write(text); // Create a directory called "Coleridge" in the root directory // - DirectoryIPtr coleridge = new DirectoryI("Coleridge", root); + DirectoryIPtr coleridge = new DirectoryI(communicator(), "Coleridge", root); // Create a file called "Kubla_Khan" in the Coleridge directory // - file = new FileI("Kubla_Khan", coleridge); + file = new FileI(communicator(), "Kubla_Khan", coleridge); text.erase(text.begin(), text.end()); text.push_back("In Xanadu did Kubla Khan"); text.push_back("A stately pleasure-dome decree:"); |