diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /shell/source/unix | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'shell/source/unix')
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 12 | ||||
-rw-r--r-- | shell/source/unix/exec/shellexecentry.cxx | 10 | ||||
-rw-r--r-- | shell/source/unix/exec/urltest.cxx | 2 | ||||
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.cxx | 14 | ||||
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file_handler.cxx | 26 |
5 files changed, 32 insertions, 32 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index 972957bba73b..41af7b2059b6 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -41,9 +41,9 @@ #include <errno.h> #include <unistd.h> -//------------------------------------------------------------------------ + // namespace directives -//------------------------------------------------------------------------ + using com::sun::star::system::XSystemShellExecute; using com::sun::star::system::SystemShellExecuteException; @@ -57,9 +57,9 @@ using namespace cppu; #define SHELLEXEC_IMPL_NAME "com.sun.star.comp.system.SystemShellExecute2" -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + namespace // private { @@ -85,7 +85,7 @@ void escapeForShell( OStringBuffer & rBuffer, const OString & rURL) } } -//----------------------------------------------------------------------------------------- + ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) : WeakImplHelper2< XSystemShellExecute, XServiceInfo >(), @@ -109,7 +109,7 @@ ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) : } } -//------------------------------------------------- + void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags ) throw (IllegalArgumentException, SystemShellExecuteException, RuntimeException) diff --git a/shell/source/unix/exec/shellexecentry.cxx b/shell/source/unix/exec/shellexecentry.cxx index 13b10ac268f8..45f47a0c3684 100644 --- a/shell/source/unix/exec/shellexecentry.cxx +++ b/shell/source/unix/exec/shellexecentry.cxx @@ -21,9 +21,9 @@ #include <osl/diagnose.h> #include "shellexec.hxx" -//----------------------------------------------------------------------- + // namespace directives -//----------------------------------------------------------------------- + using namespace ::rtl; using namespace ::com::sun::star::uno; @@ -35,7 +35,7 @@ using com::sun::star::system::XSystemShellExecute; #define SHELLEXEC_SERVICE_NAME "com.sun.star.system.SystemShellExecute" #define SHELLEXEC_IMPL_NAME "com.sun.star.comp.system.SystemShellExecute" -//----------------------------------------------------------------------- + namespace { @@ -47,9 +47,9 @@ namespace extern "C" { -//---------------------------------------------------------------------- + // component_getFactory -//---------------------------------------------------------------------- + SAL_DLLPUBLIC_EXPORT void* SAL_CALL syssh_component_getFactory( const sal_Char* pImplName, diff --git a/shell/source/unix/exec/urltest.cxx b/shell/source/unix/exec/urltest.cxx index 5a85dbe18dfa..1a48b180d54a 100644 --- a/shell/source/unix/exec/urltest.cxx +++ b/shell/source/unix/exec/urltest.cxx @@ -26,7 +26,7 @@ #include <string.h> #include <strings.h> -// ----------------------------------------------------------------------- + int main(int argc, const char *argv[]) { diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx index b1a71b795ab4..2bce26c8b972 100644 --- a/shell/source/unix/sysshell/recently_used_file.cxx +++ b/shell/source/unix/sysshell/recently_used_file.cxx @@ -44,7 +44,7 @@ inline void ensure_final_slash(/*inout*/ OUString& path) } // namespace private -//------------------------------------------------ + recently_used_file::recently_used_file() : file_(NULL) { @@ -85,7 +85,7 @@ recently_used_file::recently_used_file() : throw "Cannot determine user home directory"; } -//------------------------------------------------ + recently_used_file::~recently_used_file() { int ret = lockf(fileno(file_), F_ULOCK, 0); @@ -93,20 +93,20 @@ recently_used_file::~recently_used_file() fclose(file_); } -//------------------------------------------------ + void recently_used_file::reset() const { rewind(file_); } -//------------------------------------------------ + void recently_used_file::truncate(off_t length) { if (ftruncate(fileno(file_), length) == -1) throw "I/O error: ftruncate failed"; } -//------------------------------------------------ + size_t recently_used_file::read(char* buffer, size_t size) const { size_t r = fread(reinterpret_cast<void*>(buffer), sizeof(char), size, file_); @@ -117,14 +117,14 @@ size_t recently_used_file::read(char* buffer, size_t size) const return r; } -//---------------------------- + void recently_used_file::write(const char* buffer, size_t size) const { if (size != fwrite(reinterpret_cast<const void*>(buffer), sizeof(char), size, file_)) throw "I/O error: write failed"; } -//---------------------------- + bool recently_used_file::eof() const { return feof(file_); diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 54f9a52b0869..c6c02baeb82c 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -47,7 +47,7 @@ namespace /* private */ { #define TAG_GROUPS "Groups" #define TAG_GROUP "Group" - //------------------------------------------------ + // compare two string_t's case insensitive, may also be done // by specifying special traits for the string type but in this // case it's easier to do it this way @@ -58,7 +58,7 @@ namespace /* private */ { { return (0 == strcasecmp(s1.c_str(), s2.c_str())); } }; - //------------------------------------------------ + struct recently_used_item { recently_used_item() : @@ -282,7 +282,7 @@ namespace /* private */ { recently_used_file_filter& operator=(const recently_used_file_filter&); }; - //------------------------------------------------ + void read_recently_used_items( recently_used_file& file, recently_used_item_list_t& item_list) @@ -300,7 +300,7 @@ namespace /* private */ { } } - //------------------------------------------------ + // The file ~/.recently_used shall not contain more than 500 // entries (see www.freedesktop.org) const int MAX_RECENTLY_USED_ITEMS = 500; @@ -327,11 +327,11 @@ namespace /* private */ { int items_written_; }; - //------------------------------------------------ + const char* XML_HEADER = "<?xml version=\"1.0\"?>\n<RecentFiles>\n"; const char* XML_FOOTER = "</RecentFiles>"; - //------------------------------------------------ + // assumes that the list is ordered decreasing void write_recently_used_items( recently_used_file& file, @@ -353,14 +353,14 @@ namespace /* private */ { } } - //------------------------------------------------ + struct delete_recently_used_item { void operator() (const recently_used_item* item) const { delete item; } }; - //------------------------------------------------ + void recently_used_item_list_clear(recently_used_item_list_t& item_list) { std::for_each( @@ -370,7 +370,7 @@ namespace /* private */ { item_list.clear(); } - //------------------------------------------------ + class find_item_predicate { public: @@ -384,19 +384,19 @@ namespace /* private */ { string_t uri_; }; - //------------------------------------------------ + struct greater_recently_used_item { bool operator ()(const recently_used_item* lhs, const recently_used_item* rhs) const { return (lhs->timestamp_ > rhs->timestamp_); } }; - //------------------------------------------------ + const char* GROUP_OOO = "openoffice.org"; const char* GROUP_STAR_OFFICE = "staroffice"; const char* GROUP_STAR_SUITE = "starsuite"; - //------------------------------------------------ + void recently_used_item_list_add( recently_used_item_list_t& item_list, const OUString& file_url, const OUString& mime_type) { @@ -443,7 +443,7 @@ namespace /* private */ { greater_recently_used_item()); } - //------------------------------------------------ + struct cleanup_guard { cleanup_guard(recently_used_item_list_t& item_list) : |