Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/eagle #317

Closed
wants to merge 200 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
7fc7593
fix: 修复其他日志中,日志区域最小高度过大 (#111)
lichunlong111 Jan 11, 2023
c5db549
fix: 修复其他日志中,日志配置重复 (#112)
lichunlong111 Jan 11, 2023
7cf67b7
fix: 修复其他日志中,日志列表与区域默认高度错误 (#113)
lichunlong111 Jan 11, 2023
9b4ccd9
fix: 修复/var/log/fontconfig.log 其他日志列表中缺少配置 (#115)
lichunlong111 Jan 12, 2023
5d99026
feat: 添加配置路径支持“~”符号 (#116)
lichunlong111 Jan 12, 2023
13ac291
fix: 修复自定义日志配置,配置非text格式未忽略该文件 (#117)
lichunlong111 Jan 12, 2023
50a3e23
fix: 修复自定义日志配置,无法读取隐藏文件的内容 (#118)
lichunlong111 Jan 12, 2023
e9e7c8a
fix: 修复gsetting配置自定义配置日志路径为空字符串,日志信息界面一直转圈 (#119)
lichunlong111 Jan 12, 2023
79c5fc1
fix: 修复其他日志中,无权限文案显示位置未居中 (#120)
lichunlong111 Jan 12, 2023
fcdb15b
fix: 修复其他日志中,选中任意日志文件,“导出”按钮不应该聚焦状态 (#121)
lichunlong111 Jan 12, 2023
b9d1f4a
fix: 修复自定义日志配置无后缀名的文本文件,无法获取文本 (#122)
lichunlong111 Jan 13, 2023
95c644d
fix: DConfig组策略功能在低版本解耦 (#123)
starhcq Jan 16, 2023
a4da824
chore: V23代码合入,同步cppcheck问题修改和编译问题修复 (#124)
starhcq Jan 17, 2023
c83ab78
fix: 解决DConfig组策略在低版本打包失败的问题 (#125)
starhcq Jan 17, 2023
d2d8856
feat: 兼容V23,优化部分代码 (#127)
Feb 1, 2023
560d401
fix: 修复构建失败 (#128)
Feb 1, 2023
001b9a1
chore: 生成topic (#129)
Feb 1, 2023
0f63419
fix: 修复单元测试 (#131)
Feb 2, 2023
bd98a15
fix: 修复导出所有日志未包含其它日志和自定义日志 (#132)
Feb 6, 2023
7a8ee4e
fix: 修复导出文件不全,修复UI对齐问题 (#133)
Feb 7, 2023
15c5bfe
fix: 修复自定义日志无法监控空白无后缀文件 (#134)
Feb 8, 2023
b811872
chore: 修改changelog (#135)
Feb 14, 2023
3ab2496
fix: 添加新tag (#136)
Feb 16, 2023
9c76caa
fix: 修复未安装帮助手册文件 (#137)
Feb 21, 2023
0c2dfdd
chore: 修改changelog (#138)
Feb 21, 2023
ec38ca2
fix: 适配RPM打包 (#139)
Feb 28, 2023
73f01ce
chore: 修改changelog (#140)
Mar 7, 2023
9cc73da
chore: 修改版本号 (#141)
Mar 10, 2023
8fe1b2b
feat: 更新部分翻译文档 (#142)
Mar 13, 2023
edd2105
fix: 修复搜索框从有字到无字时不做刷新 (#143)
Mar 23, 2023
8660a39
fix: 更新翻译文件 (#145)
Mar 24, 2023
2ea2ecf
fix: 修复无搜索结果时没有显示提示文案 (#146)
Mar 24, 2023
6bcd535
chore(CI): add OBS workflows
tsic404 Mar 23, 2023
b874dd5
chore: update version to 6.0.7 (#147)
starhcq Mar 30, 2023
b13deb1
fix: 修复获取内核日志读取卡住,展示空白的问题
starhcq Apr 27, 2023
191d5b8
chore: Update version to 6.0.8 (#150)
starhcq May 9, 2023
c8cd532
chore: Sync by https://github.com/linuxdeepin/.github/commit/2e5e092b…
May 10, 2023
9bbad25
chore: 【MD】更新帮助文案 (#151)
starhcq May 17, 2023
7f16eb4
chore: Update version to 6.0.9 (#153)
starhcq May 24, 2023
144530e
feat: hw机型判断适配dconfig (#155)
hundundadi Jul 7, 2023
44fb7fd
chore: Sync by https://github.com/linuxdeepin/.github/commit/559e9116…
Jul 10, 2023
b953375
feat: hw机型判断适配dconfig (#156)
hundundadi Jul 10, 2023
e97fee7
feat: 添加等保四-审计日志功能
starhcq Jul 10, 2023
ff96003
refactor: 代码评审问题修改
starhcq Jul 10, 2023
905b42d
fix: 审计日志-全部导出,鉴权策略调整
starhcq Jul 12, 2023
f534c76
fix: 修复审计日志分类错误的问题
starhcq Jul 12, 2023
d35f680
fix: 修复部分日志数据时间解析异常的问题
starhcq Jul 12, 2023
947bcd3
fix: 审计日志权限提示翻译文案修改
starhcq Jul 12, 2023
4270cc7
fix: 审计日志详细内容区域显示内容调整
starhcq Jul 12, 2023
0fe71ec
fix: 翻译文案修改
starhcq Jul 13, 2023
a096eb8
chore: Update version to 6.0.10
starhcq Jul 19, 2023
52d6cf7
fix: 修改审计筛选规则
starhcq Jul 21, 2023
2dbc783
feat: 崩溃日志收集
feeengli Jul 24, 2023
bc95472
fix: 修复评审问题
feeengli Jul 24, 2023
ebc66dd
feat: 添加cli命令-支持全部导出
starhcq Jul 21, 2023
574838b
fix: cli命令按单例模式运行
starhcq Jul 24, 2023
b76be9d
feat: 全部导出-添加一二级目录
starhcq Jul 21, 2023
8407f78
chore: 更新中文翻译
feeengli Jul 25, 2023
43a1acf
feat: 全部导出-支持coredump文件导出
starhcq Jul 25, 2023
69cb2c9
fix: CLI命令支持单实例运行
starhcq Jul 26, 2023
0131fac
fix: 修复点击全部导出时,默认导出名称未按当前时间更新的问题
starhcq Jul 27, 2023
ffa14f5
feat: 其他日志添加窗管日志和配置文件显示
starhcq Jul 27, 2023
4d2d1cb
fix: 其他日志、自定义日志补齐搜索功能
starhcq Jul 27, 2023
498110d
fix: fix 1042 build fail
starhcq Jul 31, 2023
8fa44e7
fix: 修复窗管日志不显示内容的问题
starhcq Jul 31, 2023
d3b36f6
feat: xorg日志"时间"列变更为"偏移量"显示
starhcq Jul 31, 2023
e11e122
fix: 全部到other目录改为others
starhcq Aug 2, 2023
96a63c3
chore: Update version to 6.1.0
starhcq Aug 3, 2023
235e4de
fix: 修复崩溃日志显示不全的问题
starhcq Aug 29, 2023
3fd93de
fix: 修复kwin_x11日志显示无内容,全部导出无该文件的问题
starhcq Aug 29, 2023
9abd946
fix: 窗管默认日志路径应加.
starhcq Aug 29, 2023
1914aa4
fix: 解决导出崩溃日志失败的问题
starhcq Aug 30, 2023
9497fe5
feat: 添加accessible标签名称
starhcq Aug 29, 2023
2ce1218
chore: Update version to 6.1.1
starhcq Aug 31, 2023
82277dc
fix: Fix the issue of successfully exporting read-only file directories
starhcq Sep 7, 2023
ca7b405
fix: Command line export add authentication window
starhcq Sep 11, 2023
740b027
fix: Add pkexec to implement command line export authentication
starhcq Sep 13, 2023
4d44b38
fix: Fix the issue of missing 'apps' directory in command line export
starhcq Sep 14, 2023
673f05d
fix: Command line export initializes homePath first
starhcq Sep 15, 2023
63152ee
fix: Fix UI - issue of all export failures
starhcq Sep 18, 2023
68f2406
fix: Application data directory requires permission to create tmp dir…
starhcq Sep 18, 2023
96e2c7b
feat: Adaptation log specification rectification
starhcq Sep 25, 2023
59f797c
feat: Add journal type app log feature
starhcq Oct 10, 2023
dfdafb3
fix: fix app list can not show/export logs
starhcq Oct 10, 2023
a94ae84
feat: Rectification of log specification adaptation compatibility
starhcq Oct 11, 2023
34802c7
feat: add app log category
starhcq Oct 11, 2023
ec0a53d
fix: fix journal app can not show problems
starhcq Oct 12, 2023
7c7c894
chore: Change app log category name
starhcq Oct 13, 2023
6048828
chore: Update version to 6.1.2
starhcq Oct 17, 2023
89f9270
chore: Update REUSE date
starhcq Oct 17, 2023
2d16c0d
chore: Update version to 6.1.3
starhcq Oct 17, 2023
1dbb4e0
fix: Fix the issue of low version iso app log not being displayed
starhcq Oct 18, 2023
4f52ff1
chore: Update version to 6.1.4
starhcq Oct 18, 2023
870ee50
fix: Adjust the display rules of application names in the application…
starhcq Oct 19, 2023
232eb1e
feat: Rich command line export function
starhcq Oct 20, 2023
aea65aa
feat: Command line export by condition
starhcq Oct 25, 2023
491837f
fix: Remove command authentication
starhcq Oct 26, 2023
6943aef
fix: CLI export type logs to diretory
starhcq Oct 26, 2023
6ea4c12
fix: CLI export return correct errcode
starhcq Oct 26, 2023
35b8a56
fix: fix export specify app log failed problem
starhcq Oct 26, 2023
9a7c693
fix: fix cli export kwin log failed problem
starhcq Oct 26, 2023
02c48b4
fix: ix cli export to no-write dir can not quit
starhcq Oct 26, 2023
99a0a0a
fix: Add validity verification of cli export level parameters
starhcq Oct 26, 2023
a070886
fix: fix cli export app by keyword failed
starhcq Oct 27, 2023
9dbb79b
fix: fix cli export '-e' parameter is required option
starhcq Oct 27, 2023
1e05629
fix: cli export -k can obtain parameters with spaces
starhcq Oct 30, 2023
ceaf3d8
fix: fix cli export audit log other bug contain MAC audit type log
starhcq Oct 30, 2023
b620a09
fix: Resolve the issue of differences in content after changing audit…
starhcq Oct 30, 2023
0a18e14
feat: CLI export type log folder name with timestamp
starhcq Nov 1, 2023
db86bec
fix: Solve the problem of audit failure with keywords when exporting …
starhcq Nov 1, 2023
fe2ad64
fix: Improve the validity verification and judgment logic of cli expo…
starhcq Nov 1, 2023
434433a
fix: cli export -t&-d option cannot use together
starhcq Nov 2, 2023
a14b853
fix: CLI export app log only export app log file
starhcq Nov 2, 2023
6658dda
chore: Improve cli export input prompts
starhcq Nov 2, 2023
70cb7f2
fix: Fix the issue of exporting the boot log as empty by level in cli
starhcq Nov 2, 2023
cb394d5
fix: fix journal app log can't show by period
starhcq Nov 3, 2023
2094003
feat: add report coredump feature
starhcq Nov 3, 2023
08c5b84
fix: Fix the issue of no data in today's audit log exported by cli
starhcq Nov 7, 2023
6d2a205
fix: Coredump report time use is recorded by Dconfig/gsettings
starhcq Nov 7, 2023
0093f52
fix: Fix the issue where restarting the machine after resetting the r…
starhcq Nov 8, 2023
ee9c338
chore: Update version to 6.1.5
starhcq Nov 9, 2023
de69139
fix: clear qt warning logs
starhcq Nov 10, 2023
6e05484
fix: Fix the issue of incomplete acquisition of file base names
starhcq Nov 13, 2023
8b4afc0
feat: report coredump add stackinfo
starhcq Nov 28, 2023
0b6e2e1
fix: not get core file maps (#237)
Groveer Nov 30, 2023
c7bb722
fix: Resolve the issue of failure to obtain stack maps address for cr…
starhcq Nov 30, 2023
dbe1ace
chore: Update version to 6.1.6
starhcq Nov 30, 2023
f901c13
fix: Fix security vulnerabilities introduced by LD_PRELOAD
starhcq Dec 7, 2023
a888bda
feat: Rectification of DBus security coding standards
starhcq Dec 8, 2023
1340723
fix: systemd service add memory limits 8G
starhcq Dec 11, 2023
6cca017
fix: coredump map info only parsed in report coredump
starhcq Dec 12, 2023
b074370
chore: Code review issue modification
starhcq Dec 14, 2023
7156837
fix: Resolve the issue of incomplete display of crash logs
starhcq Dec 18, 2023
ebf8f17
chore: Update version to 6.1.7
starhcq Dec 22, 2023
9415acd
fix: Fix security vulnerabilities introduced by LD_PRELOAD 2nd
starhcq Dec 22, 2023
da1e2a1
chore: Optimization of output path whitelist inspection methods
starhcq Dec 25, 2023
291dc53
chore: Update version to 6.1.8
starhcq Dec 25, 2023
cff5bdb
feat: Log specification adaptation 2nd
starhcq Dec 27, 2023
dc18715
feat: Log specification adaptation 2nd- merge export
starhcq Jan 4, 2024
f57ab04
fix: Resolve the issue of JSON configuration not being able to contro…
starhcq Jan 4, 2024
6473135
feat: Debug mode log adaptation
starhcq Jan 5, 2024
9cee4bb
fix: Resolve the issue of blank items in the application list
starhcq Jan 5, 2024
1cbec36
feat: add package version information on crash burial point
starhcq Jan 8, 2024
a059211
fix: Change the JSON visible field to 0 in debugging mode configuration
starhcq Jan 9, 2024
40db9ae
fix: Fix the issue where using the - d parameter - m cannot export logs
starhcq Jan 9, 2024
8d3fc60
chore: Update version to 6.1.8
starhcq Jan 10, 2024
cf4bacf
chore: Update version 6.1.10
starhcq Jan 11, 2024
eeb1f85
fix: modify debug-config json
starhcq Jan 12, 2024
b451641
chore: Update version to 6.1.11
starhcq Jan 15, 2024
2cd7811
fix: Add -v option version info
starhcq Jan 29, 2024
82875e2
fix: Adapt to the type of PGX log display
starhcq Jan 30, 2024
fc7f657
chore: Update version to 6.1.12
starhcq Feb 1, 2024
d73ac8d
fix: Resolve the issue of adding sudo not being able to export logs
starhcq Feb 2, 2024
88d1d48
chore: [TS] Update international translation files
starhcq Feb 5, 2024
566538d
fix: Resolve the issue of Sudo export logs being empty
starhcq Feb 6, 2024
3f6a924
fix: Fix the issue of parent directory permissions being changed duri…
starhcq Feb 6, 2024
09d9dae
fix: Unzip may overwrite linked file data
rb-union Feb 20, 2024
e593bde
fix: fix app name can not show chinese
starhcq Feb 21, 2024
4cd6b8a
chore: Update version to 6.1.13
starhcq Feb 22, 2024
b01bd41
fix: Fix the issue of filter option filtering without content when th…
starhcq Feb 29, 2024
8af0348
fix: Delete dump temporary file from service backend
starhcq Feb 27, 2024
99c7dcc
fix: Remove the. config directory from the root directory
starhcq Mar 1, 2024
3ca0127
fix: Remove the. config directory from the root directory
starhcq Mar 1, 2024
6ff98c9
chore: Crash reporting adjusted to once every 30 seconds
starhcq Mar 4, 2024
2f01456
chore: add logs
starhcq Mar 5, 2024
00a99ca
Revert "chore: add logs"
starhcq Mar 5, 2024
ea82612
Revert "chore: Crash reporting adjusted to once every 30 seconds"
starhcq Mar 5, 2024
41d2d16
chore: Update version to 6.1.14
starhcq Mar 13, 2024
79d3ca5
feat: kwin crash log buried point report
starhcq Mar 14, 2024
f2696e3
chore: adjust coredump report interval
starhcq Mar 20, 2024
811b1f7
fix: Correction of abnormal last reporting time
starhcq Mar 21, 2024
8d34a29
chore: Update version to 6.1.15
starhcq Mar 21, 2024
3917079
fix: The coredump reporter service switches from system mode to user …
starhcq Mar 22, 2024
066c43c
fix: 修复在32位操作系统上使用64位time_t构建失败
myk1343 Apr 11, 2024
3c8b86d
chore: Update version to 6.1.16
lJxDabab Apr 12, 2024
c46e491
perf: Optimization of kernel/window management log memory usage
starhcq Apr 15, 2024
b98cd10
fix: Optimize search functionality
starhcq Apr 17, 2024
ca1fb9f
fix: Fix the issue of repeatedly popping up authentication windows
starhcq Apr 17, 2024
eb98eba
fix: Fix the issue of segment export not being able to be cancelled
starhcq Apr 17, 2024
e134df9
fix: Refinement of kernel log segmentation export and cancellation of…
starhcq Apr 17, 2024
ca7044d
fix: Search function optimization 2nd && add logs
starhcq Apr 18, 2024
d1ba087
chore: Update version to 6.1.17
starhcq Apr 19, 2024
53c9078
feat: Segmented export supports doc and xls formats for export
starhcq Apr 22, 2024
2f9b9f1
fix: Fix the issue of progress bar not displaying progress
starhcq Apr 22, 2024
e01cf8e
feat: Crash report content optimization
starhcq Apr 25, 2024
566f2ed
fix: Fix two security vulnerabilities
starhcq May 7, 2024
cabb257
fix: Optimized file reading speed
pengfeixx May 11, 2024
f1a2743
fix: Fix issues with abnormal search functionality
starhcq May 13, 2024
28f7037
fix: fix compile problem on longarrch
starhcq May 24, 2024
93ec21b
fix: Security vulnerability reinforcement
starhcq May 24, 2024
28e5555
fix: remove /bin/bash in service if necessary
starhcq May 24, 2024
dd0c53e
fix: UI interface in English
Jun 4, 2024
20d77d9
fix: 页面内“级别”显示为“level
Jun 17, 2024
e42a970
chore: Update version to 6.1.18
starhcq Jun 18, 2024
a16cb04
chore: Code format organization
starhcq Jul 12, 2024
d8be256
fix: Fix the issue of upgrade failure after enabling level protection
starhcq Jul 24, 2024
659b6a5
fix: Fix crashes when there is no permission to view other logs
starhcq Jul 26, 2024
38e330f
fix: DBus calls authentication adds MNT check
starhcq Jul 29, 2024
f2b443f
fix: v20 pull
myk1343 Aug 20, 2024
6e877df
Merge branch 'release/eagle' into release/eagle
myk1343 Aug 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions .github/workflows/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ concurrency:
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
secrets: inherit

backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets:
GITEE_SYNC_TOKEN: ${{ secrets.GITEE_SYNC_TOKEN }}
secrets: inherit
17 changes: 0 additions & 17 deletions .github/workflows/call-build-deb.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/call-build-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ on:
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master
secrets:
BUILD_GPG_PRIVATE_KEY: ${{ secrets.BUILD_GPG_PRIVATE_KEY }}
BUILD_SSH_PRIVATE_KEY: ${{ secrets.BUILD_SSH_PRIVATE_KEY }}
WEBDAV_PASSWD: ${{ secrets.WEBDAV_PASSWD }}
WEBDAV_USER: ${{ secrets.WEBDAV_USER }}
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/call-chatOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ on:
jobs:
chatopt:
uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: export
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
Expand Down
44 changes: 44 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
test_build:
steps:
- link_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:CI

- configure_repositories:
project: deepin:CI
repositories:
- name: deepin_develop
paths:
- target_project: deepin:CI
target_repository: deepin_develop
architectures:
- x86_64
- aarch64

- name: debian
paths:
- target_project: deepin:CI
target_repository: debian_sid
architectures:
- x86_64

filters:
event: pull_request

tag_build:
steps:
- branch_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:Unstable:dde
filters:
event: tag_push

commit_build:
steps:
- trigger_services:
project: deepin:Develop:dde
package: %{SCM_REPOSITORY_NAME}
filters:
event: push
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Upstream-Contact: UnionTech Software Technology Co., Ltd. <>
Source: https://github.com/linuxdeepin/deepin-log-viewer

# ci
Files: .github/*
Files: .github/* .obs/workflows.yml
Copyright: None
License: CC0-1.0

Expand Down
8 changes: 4 additions & 4 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ host = https://www.transifex.com
minimum_perc = 80
mode = developer

[deepin-log-viewer.deepin-log-viewer]
[o:linuxdeepin:p:deepin-log-viewer:r:deepin-log-viewer]
file_filter = translations/deepin-log-viewer_<lang>.ts
source_file = translations/deepin-log-viewer.ts
source_lang = en
type = QT

[deepin-log-viewer.deepin-log-viewer-desktop-ts]
[o:linuxdeepin:p:deepin-log-viewer:r:deepin-log-viewer-desktop-ts]
file_filter = translations/desktop/desktop_<lang>.ts
source_file = translations/desktop/desktop.ts
source_lang = en
type = QT

[deepin-log-viewer.deepin-log-viewer-policy-auth-ts]
[o:linuxdeepin:p:deepin-log-viewer:r:deepin-log-viewer-policy-auth-ts]
file_filter = translations/policy/auth/policy_<lang>.ts
source_file = translations/policy/auth/policy.ts
source_lang = en
type = QT


[deepin-log-viewer.deepin-log-viewer-policy-truncate-ts]
[o:linuxdeepin:p:deepin-log-viewer:r:deepin-log-viewer-policy-truncate-ts]
file_filter = translations/policy/truncate/policy_<lang>.ts
source_file = translations/policy/truncate/policy.ts
source_lang = en
Expand Down
2 changes: 1 addition & 1 deletion .tx/deepin.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[transifex]
branch = m20
branch = m23
2 changes: 1 addition & 1 deletion 3rdparty/DocxFactory/include/DocxFactory/os/OsFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace DocxFactory
static string fileUrlToPath ( const string& p_url );
static string normalizeFileUrl ( const string& p_url );

static byte* readFile(
static byte *readFile(
const string& p_fileName,
size_t& p_bufSize );

Expand Down
4 changes: 2 additions & 2 deletions 3rdparty/DocxFactory/include/DocxFactory/zip/UnzipFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class UnzipFile

// functions for extracting file entries content from the zip file

byte *extractEntryToBuf(
DocxFactory::byte *extractEntryToBuf(
const string &p_path,
size_t &p_bufSize) const;

byte *extractEntryToRaw(
DocxFactory::byte *extractEntryToRaw(
const string &p_path,
int &p_method,
int &p_level,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void Merger::merge()

else {
size_t l_bufSize;
boost::scoped_array<byte> l_buf(OsFunc::readFile(m_dataFile, l_bufSize));
boost::scoped_array<DocxFactory::byte> l_buf(OsFunc::readFile(m_dataFile, l_bufSize));

l_data = string((char *) l_buf.get(), l_bufSize);
}
Expand Down
40 changes: 20 additions & 20 deletions 3rdparty/DocxFactory/src/locale/LocaleFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,14 +1018,14 @@ double LocaleFunc::strToNum(const string &p_str)
if (!m_initialized)
initialize();

enum Part {
PREFIX = 0,
INTEGER,
FRACTION,
SUFFIX
enum _Part {
_PREFIX = 0,
_INTEGER,
_FRACTION,
_SUFFIX
};

Part l_part = PREFIX;
_Part l_part = _PREFIX;
double l_val = 0;
double l_dec = 1;
char l_neg = 0;
Expand All @@ -1041,54 +1041,54 @@ double LocaleFunc::strToNum(const string &p_str)
if (l_neg != 0)
break;

if (l_part == INTEGER || l_part == FRACTION)
l_part = SUFFIX;
if (l_part == _INTEGER || l_part == _FRACTION)
l_part = _SUFFIX;

l_neg = l_ch;
}

else if (l_ch == ' '

// if thousand separator is also space then treated as space only in prefix and suffix.
&& (m_numThSep != ' ' || l_part == PREFIX || l_part == SUFFIX)) {
if (l_part == INTEGER || l_part == FRACTION)
l_part = SUFFIX;
&& (m_numThSep != ' ' || l_part == _PREFIX || l_part == _SUFFIX)) {
if (l_part == _INTEGER || l_part == _FRACTION)
l_part = _SUFFIX;

if (l_part == SUFFIX && l_neg != 0)
if (l_part == _SUFFIX && l_neg != 0)
break;
}

else if (IS_DIGIT(l_ch)) {
if (l_part == PREFIX)
l_part = INTEGER;
if (l_part == _PREFIX)
l_part = _INTEGER;

switch (l_part) {
case INTEGER:
case _INTEGER:
l_val = l_val * 10 + (l_ch - 48);
break;

case FRACTION:
case _FRACTION:
l_dec = l_dec * 10;
l_val = l_val + (l_ch - 48) / l_dec;
break;
default:
break;
}

if (l_part == SUFFIX)
if (l_part == _SUFFIX)
break;
}

else if (l_ch == m_numFracSep) {
if (l_part == PREFIX || l_part == INTEGER)
l_part = FRACTION;
if (l_part == _PREFIX || l_part == _INTEGER)
l_part = _FRACTION;

else
break;
}

else if (l_ch == m_numThSep) {
if (l_part != INTEGER && l_part != FRACTION)
if (l_part != _INTEGER && l_part != _FRACTION)
break;
}

Expand Down
8 changes: 4 additions & 4 deletions 3rdparty/DocxFactory/src/os/OsFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ string OsFunc::normalizeFileUrl( const string& p_url )



byte* OsFunc::readFile(
DocxFactory::byte* OsFunc::readFile(
const string& p_fileName,
size_t& p_bufSize )
{
ifstream l_fileStream;
byte* l_buf = NULL;
DocxFactory::byte* l_buf = NULL;

try
{
Expand All @@ -299,7 +299,7 @@ byte* OsFunc::readFile(
throw FileNotFoundException( p_fileName, __FILE__, __LINE__ );

p_bufSize = ( size_t ) l_fileStream.tellg();
l_buf = new byte[ p_bufSize ];
l_buf = new DocxFactory::byte[ p_bufSize ];

l_fileStream.seekg( 0, ios::beg );
l_fileStream.read( ( char* ) l_buf, p_bufSize );
Expand All @@ -322,7 +322,7 @@ byte* OsFunc::readFile(

void OsFunc::writeFile(
const string& p_fileName,
const byte* p_buf,
const DocxFactory::byte* p_buf,
size_t p_bufSize,
bool p_append )
{
Expand Down
4 changes: 2 additions & 2 deletions 3rdparty/DocxFactory/src/xml/XmlFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ void XmlFunc::saveDocToFile( const xercesc::DOMDocument* p_doc, const string& p_
}
} // saveDocToFile

byte* XmlFunc::saveDocToBuf( const xercesc::DOMDocument* p_doc, size_t& p_bufSize )
DocxFactory::byte* XmlFunc::saveDocToBuf( const xercesc::DOMDocument* p_doc, size_t& p_bufSize )
{
byte* l_buf = NULL;
DocxFactory::byte* l_buf = NULL;
xercesc::DOMImplementationLS* l_impl = NULL;
xercesc::DOMLSSerializer* l_serializer = NULL;
xercesc::DOMLSOutput* l_outputStream = NULL;
Expand Down
6 changes: 3 additions & 3 deletions 3rdparty/DocxFactory/src/zip/UnzipFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void UnzipFile::close()



byte *UnzipFile::extractEntryToBuf(
DocxFactory::byte *UnzipFile::extractEntryToBuf(
const string &p_path,
size_t &p_bufSize) const
{
Expand Down Expand Up @@ -124,14 +124,14 @@ byte *UnzipFile::extractEntryToBuf(
return l_buf;
} // extract

byte *UnzipFile::extractEntryToRaw(
DocxFactory::byte *UnzipFile::extractEntryToRaw(
const string &p_path,
int &p_method,
int &p_level,
FileInfo *&p_fileInfo,
size_t &p_bufSize) const
{
byte *l_buf = NULL;
DocxFactory::byte *l_buf = NULL;
int l_err;

if (!m_fileOpen)
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ add_subdirectory(logViewerTruncate)

add_subdirectory(logViewerService)

add_subdirectory(tests)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_subdirectory(tests)
endif()

add_subdirectory(liblogviewerplugin)
option(PERF_ON "open the info of benchmark" ON)
Loading
Loading