]> git.lyx.org Git - features.git/commitdiff
remove duplicate top_srcdir()
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 6 Apr 2007 09:39:05 +0000 (09:39 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 6 Apr 2007 09:39:05 +0000 (09:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17741 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/package.C.in
src/support/package.h

index efe19c62727696173219dfe66d18032765d3f468..bdeb4a141e51475e1c4a343c12628ec71629ae04 100644 (file)
@@ -169,15 +169,8 @@ Package::Package(string const & command_line_arg0,
 
 namespace {
 
-// These next three functions contain the stuff that is substituted at
+// These next functions contain the stuff that is substituted at
 // configuration-time.
-string const top_srcdir()
-{
-       static string const dir("@TOP_SRCDIR@");
-       return dir;
-}
-
-
 string const hardcoded_localedir()
 {
        return string("@LOCALEDIR@");
@@ -201,7 +194,7 @@ string const & with_version_suffix()
 } // namespace anon
 
 
-string const & Package::top_srcdir() const
+string const & Package::top_srcdir()
 {
        static string const dir("@TOP_SRCDIR@");
        return dir;
@@ -270,7 +263,7 @@ get_build_dirs(string const & abs_binary,
                if (!fileSearch(build_support_dir, "Makefile").empty()) {
                        // Try and find "chkconfig.ltx".
                        string const system_support_dir =
-                               addPath(top_srcdir(), "lib");
+                               addPath(Package::top_srcdir(), "lib");
 
                        if (!fileSearch(system_support_dir, "chkconfig.ltx").empty()) {
                                lyxerr[Debug::INIT] << check_text << " yes"
index c84a0f8bcbf51176175ee5883e8b600b84945f77..3e801dfd45b262319ed4f4b51bc2e2f066d9c9f2 100644 (file)
@@ -73,7 +73,7 @@ public:
 
        /** The top of the LyX source code tree.
         */
-       std::string const & top_srcdir() const;
+       static std::string const & top_srcdir();
 
        /** The path to the system-level support files
         *  we're actually going to use.