]> git.lyx.org Git - features.git/commitdiff
FileName.cpp: compile fix
authorUwe Stöhr <uwestoehr@web.de>
Thu, 8 Nov 2007 22:48:23 +0000 (22:48 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 8 Nov 2007 22:48:23 +0000 (22:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21523 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index a1ca026c633da6f7aade5bf9e99fd19cd1c2c13b..3c75f9407aef739723a0729399e2555162246d46 100644 (file)
@@ -626,7 +626,7 @@ string const DocFileName::mangledFilename(std::string const & dir) const
        // If dir.size() > max length, all bets are off for YAP. We truncate
        // the filename nevertheless, keeping a minimum of 10 chars.
 
-       string::size_type max_length = std::max(100 - ((int)dir.size() + 1), 10);
+       string::size_type max_length = max(100 - ((int)dir.size() + 1), 10);
 
        // If the mangled file name is too long, hack it to fit.
        // We know we're guaranteed to have a unique file name because