Updated Branches:
  refs/heads/master 885668bae -> 4ca561e4d

TS-1887: more trivial srcLoc cleanup


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/4ca561e4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/4ca561e4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/4ca561e4

Branch: refs/heads/master
Commit: 4ca561e4d69036717001f7bf299bb4aff747838b
Parents: 885668b
Author: James Peach <[email protected]>
Authored: Fri May 10 15:51:37 2013 -0700
Committer: James Peach <[email protected]>
Committed: Fri May 10 15:51:37 2013 -0700

----------------------------------------------------------------------
 lib/ts/Diags.h |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4ca561e4/lib/ts/Diags.h
----------------------------------------------------------------------
diff --git a/lib/ts/Diags.h b/lib/ts/Diags.h
index b669bb4..556b693 100644
--- a/lib/ts/Diags.h
+++ b/lib/ts/Diags.h
@@ -105,26 +105,14 @@ class SrcLoc
 public:
   const char *file;
   const char *func;
-  int line;
-
-  void set(const char *_file, const char *_func, int _line) {
-    file = _file;
-    func = _func;
-    line = _line;
-  }
+  const int line;
 
   bool valid() const {
     return file && line;
   }
 
-  SrcLoc(const char *_file, const char *_func, int _line) {
-    set(_file, _func, _line);
-  }
-
-  SrcLoc(): file(NULL), func(NULL), line(0) {
-  }
-
-  ~SrcLoc() {
+  SrcLoc(const char *_file, const char *_func, int _line)
+    : file(_file), func(_func), line(_line) {
   }
 
   char * str(char *buf, int buflen) const;

Reply via email to