aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/example3
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/lwtrace/example3
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lwtrace/example3')
-rw-r--r--library/cpp/lwtrace/example3/lwtrace_example3.cpp2
-rw-r--r--library/cpp/lwtrace/example3/my_action.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/lwtrace/example3/lwtrace_example3.cpp b/library/cpp/lwtrace/example3/lwtrace_example3.cpp
index 4493dc0077..8556cc484f 100644
--- a/library/cpp/lwtrace/example3/lwtrace_example3.cpp
+++ b/library/cpp/lwtrace/example3/lwtrace_example3.cpp
@@ -30,7 +30,7 @@ long double Fact(int n) {
void FactorialCalculator() {
i32 n;
Cout << "Enter a number: ";
- TString str;
+ TString str;
Cin >> n;
double factN = Fact(n);
Cout << n << "! = " << factN << Endl << Endl;
diff --git a/library/cpp/lwtrace/example3/my_action.h b/library/cpp/lwtrace/example3/my_action.h
index 9a04293ba2..0068774484 100644
--- a/library/cpp/lwtrace/example3/my_action.h
+++ b/library/cpp/lwtrace/example3/my_action.h
@@ -8,7 +8,7 @@
class TMyFile: public NLWTrace::IResource {
private:
TMutex Mutex;
- THolder<TUnbufferedFileOutput> File;
+ THolder<TUnbufferedFileOutput> File;
public:
// Note that this class must have default ctor (it's declared here just for clearness)
@@ -27,7 +27,7 @@ public:
// if the same file was specified in Opts
return;
}
- File.Reset(new TUnbufferedFileOutput(path));
+ File.Reset(new TUnbufferedFileOutput(path));
}
// Outputs a line to opened file
@@ -63,7 +63,7 @@ public:
private:
virtual bool DoExecute(NLWTrace::TOrbit&, const NLWTrace::TParams& params) {
// Serialize param values to strings
- TString paramValues[LWTRACE_MAX_PARAMS];
+ TString paramValues[LWTRACE_MAX_PARAMS];
Probe->Event.Signature.SerializeParams(params, paramValues);
// Generate output line