btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / terminal / ShellParameters.cpp
blob136abcc856e52d79622e514f469af85353e78499
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "ShellParameters.h"
9 #include "TermConst.h"
12 ShellParameters::ShellParameters(int argc, const char* const* argv,
13 const BString& currentDirectory)
15 fArguments(argv),
16 fArgumentCount(argc),
17 fCurrentDirectory(currentDirectory),
18 fEncoding(M_UTF8)
23 void
24 ShellParameters::SetArguments(int argc, const char* const* argv)
26 fArguments = argv;
27 fArgumentCount = argc;
31 void
32 ShellParameters::SetCurrentDirectory(const BString& currentDirectory)
34 fCurrentDirectory = currentDirectory;
38 void
39 ShellParameters::SetEncoding(int encoding)
41 fEncoding = encoding;