[Libreoffice-commits] .: 2 commits - soltools/adjustvisibility
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Jan 7 03:10:34 PST 2011
soltools/adjustvisibility/adjustvisibility.cxx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
New commits:
commit 234c71fa451efef99d97d373e20060267f93cd6d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jan 7 11:07:24 2011 +0000
adjust indent
diff --git a/soltools/adjustvisibility/adjustvisibility.cxx b/soltools/adjustvisibility/adjustvisibility.cxx
index 7ea34f1..3e204cb 100644
--- a/soltools/adjustvisibility/adjustvisibility.cxx
+++ b/soltools/adjustvisibility/adjustvisibility.cxx
@@ -243,11 +243,11 @@ void processObject(const std::string& rFile, bool bPreserve, bool bVerbose)
if ( bPreserve ) {
if ( fstat(fd, &aStatBuf) == -1) {
close(fd);
- std::string sMessage("adjustVisibilty() failed: can't stat file ");
- sMessage += rFile;
- sMessage += ": ";
- sMessage += std::strerror(errno);
- throw std::runtime_error(sMessage);
+ std::string sMessage("adjustVisibilty() failed: can't stat file ");
+ sMessage += rFile;
+ sMessage += ": ";
+ sMessage += std::strerror(errno);
+ throw std::runtime_error(sMessage);
}
}
commit 25fa9690cc66386e605495ff8593a897233d2e4c
Author: Guillaume Poussel <gpoussel at gmail.com>
Date: Thu Jan 6 20:03:07 2011 +0100
Clean 'resourceleak' warning in cppcheck.
diff --git a/soltools/adjustvisibility/adjustvisibility.cxx b/soltools/adjustvisibility/adjustvisibility.cxx
index 443ab2f..7ea34f1 100644
--- a/soltools/adjustvisibility/adjustvisibility.cxx
+++ b/soltools/adjustvisibility/adjustvisibility.cxx
@@ -242,6 +242,7 @@ void processObject(const std::string& rFile, bool bPreserve, bool bVerbose)
if ( bPreserve ) {
if ( fstat(fd, &aStatBuf) == -1) {
+ close(fd);
std::string sMessage("adjustVisibilty() failed: can't stat file ");
sMessage += rFile;
sMessage += ": ";
More information about the Libreoffice-commits
mailing list